[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[alt.sysadmin.recovery] stupid perl tricks
------- Start of forwarded message -------
From: [email protected] (Matthew Sams)
Newsgroups: alt.sysadmin.recovery
Subject: stupid perl tricks
Date: 2 Dec 1996 21:34:46 GMT
Organization: School of Computer Science, McGill University
Message-ID: <[email protected]>
As seen in a perl program written by an instructor for a graduate
course.
system "echo $host $user \n";
sigh..
This is but one of many tasties in this program. G*d, and they
want to be computer scientists.
hey, so will there be a bofh bof in anaheim?
-Matthew
------- End of forwarded message -------
For those who know neither the Camel nor the Llama, the above code
runs the program "echo" which prints its own command line. The more
obvious way to achieve this outcome is to use
print "$host $user \n";
--
This message comes to you as a service of the mph-humor list. No
claims of real or perceived humor are offered.
Sumbissions: [email protected]
Information: http://wopr.ml.org/~hunt/mph-humor.html