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

Re: Subroutines

by Elgon (Curate)
on Jan 16, 2001 at 17:22 UTC ( #52227=note: print w/replies, xml ) Need Help??


in reply to Subroutines

If you are trying to get input from the standard output of the script and system security is good (NOT one of my best topics) then why not use backticks, as in...
$foo = 'usr/bin/bar.pl';

If anyone has any good reasons why not, please reply or /msg me.

Muchas gracias, Elgon

UPDATE: Thanks to myocom, that should read...

$foo = `/usr/bin/bar.pl`;

Goddamn azerty keyboards!

Replies are listed 'Best First'.
Re: Re: Subroutines
by myocom (Deacon) on Jan 17, 2001 at 00:05 UTC

    Just two problems with your code: $foo = 'usr/bin/bar.pl';

    One, those aren't backticks. Two, you probably want a leading / in your path, there...

    $foo = `/usr/bin/bar.pl`;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-10-24 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?