in reply to output redirection when calling perl from shell - perl -pe "blabla"

Remove ;. For the shell that character separates complete statements. So you basically redirect an empty statement

If you wanted to have the ; as part of the perl script you should put it inside the ' '

  • Comment on Re: output redirection when calling perl from shell - perl -pe "blabla"

Replies are listed 'Best First'.
Re^2: output redirection when calling perl from shell - perl -pe "blabla"
by noname (Sexton) on Oct 15, 2010 at 11:35 UTC
    it is working now , thank you .