On 11/15/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> On Nov 16, 2007 2:16 AM, John W. Krahn <[EMAIL PROTECTED]> wrote:

> > Second, CAT?  Are you trying to win the UUOC award?

> what's UUOC? cat is just cat under linux/unix, `man cat' pls.

You could probably have found "What does UUOC mean?" in your favorite
search engine, even if you didn't add "cat" as an extra hint. The
Useless Use Of Cat Award is given whenever somebody uses the cat
utility in a useless way, the classic example being as a replacement
for I/O redirection in the Unix shell:

  $ cat some_file | my_program

instead of the simpler:

  $ my_program <some_file

There are many useful ways to use cat, of course; but it's hardly ever
useful (nor portable) to call it from Perl programs, because the few
useful tricks it performs are *quite* simple, such as adding line
numbers. Conventional wisdom tells us rightly that simple tasks are
better accomplished with a little bit of Perl code than by starting up
another process; and cat is hardly used for anything but simple,
simple tasks.

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to