Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

Replies are listed 'Best First'.
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: (6)
As of 2016-10-01 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (577 votes). Check out past polls.