TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] perl boogage?



I ran across a curiosity in a perl program today, which can be explained
like so:

 @ITEMS = (0, 1, 2);
 print @#ITEMS;                # prints "2";


So if you wedge a '#' into an array name, it means "the length of the array,
less 1" (Oh, of course!). The guy was using it as a loop limit. 

I couldn't find anything on this in any of the perl books I own... is this a
documented feature of the language, or just a fetid schbat of boogage?  

To me, it looks suspiciously like a fetid schbat of boogage.

Phil Plumbo.

Or, perhaps, a turgid wad of hell-snot.