Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?

Replies are listed 'Best First'.
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?
[Corion]: Ouch. I just learned something about Chrome - the "version numbers" are not really feature numbers... Chrome 62 still gets new features even though Chrome 64 is out and Chrome 65 is the dev version
[erix]: why ouch? Something to be said for that ,surely?
LanX is a dev version
[marto]: That reminds me, I made some notes somewhere with regard W::M::C, I'll get round to a PR when I've time to flesh it out

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-12-12 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?