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

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/';

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/`;

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/';

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

    $foo = `/usr/bin/`;

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://52227]
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
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (89 votes). Check out past polls.