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 $_