Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: rtfm

by Ven'Tatsu (Deacon)
on Jun 22, 2004 at 13:27 UTC ( #368709=note: print w/ replies, xml ) Need Help??


in reply to rtfm

You should really use the list form of system (or exec as grinder points out).

system('man', $bins[int(rand(@bins))]);
It will avoid calling a shell to handle parsing the options to the external program saving you the trouble of making sure no one has named a file something that may cause your system trouble.


Comment on Re: rtfm
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2015-07-08 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls