SPUG: geting the perl version

Colin Meyer cmeyer at helvella.org
Wed Jan 25 10:53:39 PST 2006


On Wed, Jan 25, 2006 at 10:45:28AM -0800, Atom Powers wrote:
> Thank you, that does whan I want.
> But still doesn't work from within my application.

Why not? I just inserted that code, and the $^V style (with sprintf
instead of printf) into an application, and they both worked fine.

  # assuming that your application is also a Perl program
  #
  my $version = sprintf "%vd", $^V;
  some_routine_that_wants_the_version( $version );

-Colin.


More information about the spug-list mailing list