Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: exchanging data between shell script and perl -e

by Jouke (Curate)
on Jul 25, 2001 at 15:57 UTC ( #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
Node Status?
node history
Node Type: note [id://99633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2019-08-24 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?