Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: exchanging data between shell script and perl -e

by Jouke (Curate)
on Jul 25, 2001 at 15:57 UTC ( [id://99633]=note: print w/replies, xml ) Need Help??


in reply to exchanging data between shell script and perl -e

First off, you can pass data to perl using normal piping like:
ls -l |perl -ne "print if /bla/"
Second, if you want to let Perl exit with a status code, you can use exit.

I hope this answers your question.

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory

Replies are listed 'Best First'.
Re: Re: exchanging data between shell script and perl -e
by Sinister (Friar) on Jul 25, 2001 at 16:01 UTC
    This is one option, but I sort of have my mind set on the option I mentioned...

    If, for what reason what so ever this can't be done I will certainly use this option. But I figured the first to be more readable...

    Sinister greetings.
    perldoc -q $_

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found