Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to tell what version of Perl a script needs?

by haoess (Curate)
on Apr 19, 2005 at 17:35 UTC ( #449352=note: print w/ replies, xml ) Need Help??


in reply to How to tell what version of Perl a script needs?

What do you mean with "run"? Compiling? Or printing/calculating the expecting result?


Comment on Re: How to tell what version of Perl a script needs?
Re^2: How to tell what version of Perl a script needs?
by Whitehawke (Pilgrim) on Apr 19, 2005 at 21:43 UTC
    I'll settle for compiling. Once it does that, I can take it the rest of the way. I've just never uploaded the CHANGELOGs into my brain, so I'm not sure precisely which version of perl is required in order to do (e.g.):
    for my $x (@x_indexes) {...}
    Which is a construct that I use all the time (the my declared inline with the for).

      You could install some major releases with different executables, and let them show you if they can compile your script:

      # just to get the idea ... $ ls /usr/local/bin/perl perl-5.004 perl-5.005 perl-5.006 perl-5.008 $ for i in /usr/local/bin/perl/* ; do "$i" -c yourscript.pl ; done

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://449352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-07-28 17:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (205 votes), past polls