Minor: MS version info

Mariano Absatz el.baby at GMAIL.COM
Tue Aug 3 13:22:25 IST 2004


On Tue, 3 Aug 2004 08:48:43 +0100, Julian Field
<mailscanner at ecs.soton.ac.uk> wrote:
> At 08:39 03/08/2004, you wrote:
> >I have changed it to say "%vd (%f)", $^V, $]
> >which will hopefully work on old and new versions?
> >
> >I can't find a 5.005 system here to test it on. Can someone do
> >         printf "%vd (%f)\n", $^V, $];
> >and let me know if it works or not please?
This one doesn't work... apparently the $^V is ignored (null) and
maybe %vd wasn't valid with 5.005's printf so it doesn't get to print
$] :-(
# /usr/bin/perl5.00503 -e 'printf "%vd (%f)\n", $^V, $];'
%vd (0.000000)


>
> Even better, please try this:
>    printf("This is Perl version %f (%vd)\n", $], $^V);
> as that appears to work on 5.004.
This last one works
# /usr/bin/perl5.00503 -e 'printf("This is Perl version %f (%vd)\n", $], $^V);'
This is Perl version 5.005030 (%vd)

# /usr/bin/perl -e 'printf("This is Perl version %f (%vd)\n", $], $^V);'
This is Perl version 5.006001 (5.6.1)

Seems like it'll do.

--
Mariano Absatz - El Baby
el (dot) baby (AT) gmail (dot) com
el (punto) baby (ARROBA:@) gmail (punto) com

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list