I saw "The Camel Made Of Code"
And found it quite perplexing
And so I thought to post a node
On a problem that's been vexing
(Me.)

The nifty thing about the source
Of the camel I'm regarding
Is how whitespace was used to force
The art, e'en tho 'twas parting
(Reserved words.)

And so my query to you all,
(Hope you don't -- it)
Is to view my tiny little scrawl,
And tell me how I'd best perfect it.

#!/usr/bin/perl -w use strict; $_='p rint "Hello\n"'; eval;

Replies are listed 'Best First'.
Re: "Ode Pleas Help" (or: Gratuitous Whitespace in Code Camel)
by Dominus (Parson) on Mar 27, 2001 at 22:06 UTC
    Most of the 'code' is actually a big string. The first code that isn't part of this string says:
    undef$/;$_=<DATA>;s/\s*//g;
    This uses the DATA filehandle to read the code into $_; then it removes all the whitespace.