Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: I'm an idiot newbie, so

by bsummerer (Initiate)
on Apr 20, 2001 at 23:00 UTC ( #74272=note: print w/ replies, xml ) Need Help??


in reply to Re: I'm an idiot newbie, so
in thread I'm an idiot newbie, so

Didn't know if that was even a keyword. Many thanks. -Brett


Comment on Re: Re: I'm an idiot newbie, so
(bbfu) (system) Re(3): I'm an idiot newbie, so
by bbfu (Curate) on Apr 20, 2001 at 23:37 UTC

    Beware that exec never returns (if you didn't already know that), because it replaces your process with the new one.

    If you want to make multiple "execs", you can use system.

    Check out perlfunc for a list of all available functions and keywords in Perl.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.

Re: Re: Re: I'm an idiot newbie, so
by arhuman (Vicar) on Apr 21, 2001 at 17:16 UTC
    Just to complete chady and bbfu answers.
    backticks quotes could be handy too...
    (When you need to grab the produced output)

    You might then use something like :
    $string_to_process=`ping $host`;
    (notes that variable are interpolated inside backticks)

    "Only Bad Coders Badly Code In Perl" (OBC2IP)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-09-17 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (60 votes), past polls