Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Whitehawke (Pilgrim)
on Apr 19, 2005 at 21:43 UTC ( [id://449438]=note: print w/replies, xml ) Need Help??


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

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).

Replies are listed 'Best First'.
Re^3: How to tell what version of Perl a script needs?
by haoess (Curate) on Apr 19, 2005 at 21:54 UTC

    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://449438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found