Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: What's the best way to handle the installation and or distribution of a Perl script?

by Utilitarian (Vicar)
on Nov 24, 2013 at 22:24 UTC ( #1064151=note: print w/ replies, xml ) Need Help??


in reply to What's the best way to handle the installation and or distribution of a Perl script?

The $^O variable ($OSNAME if you "use English;") contains an indication of the name of the operating system (not its release number) that the perl binary was built for.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: What's the best way to handle the installation and or distribution of a Perl script?
Download Code
Re^2: What's the best way to handle the installation and or distribution of a Perl script?
by Utilitarian (Vicar) on Nov 24, 2013 at 22:35 UTC
    I would caution that there is always the possibility that a future release of your utility may require its own modules and so a standard release may be advisible but for simple releases dropping a script which requires a minimum Perl version in a directory on the standard path should suffice.
    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-10-02 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (67 votes), past polls