in reply to Error in converted shell script (was: Pls Help)

At the time I write this, the question and all answers have a Useless Use of Cat. And that's actually complicating the solutions. If you get rid of the unneeded pipe, you can switch to a multi-arg system call, and then you can pass a string without worrying about what it contains:
system "grep", "-e", $_, "/etc/mail/aliases";
And in this case, it saves not one process, but two!

Beware the useless use of cat.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: updated URL per notice.

Replies are listed 'Best First'.
Re: On Useless Cats
by Tomte (Priest) on Feb 14, 2003 at 14:01 UTC

    Useless Use of Cat.
    Redirecting to http://www.iki.fi/era/unix/award.html. Follow the link if this message remains visible.
     
    I told people to not bookmark files on this server. You have my permission to be rude when you point this out to the owner of the referring page. Thank you.

    ;-)
    don't know how to be rude, though

    regards,
    tomte