NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Technology apologists (Score:2)
I've found it to be rather common to need to apologize for the state of the technology being presented. This could be something as simple as using $array[0] vs. @array[0] in Perl, or much more unfortunate like the state of XML. Most recently, I had to teach DTD syntax and usage to a bunch of programmers who were going to be using XML Schema, and had to defend DTDs, only to illustrate t
Re:Technology apologists (Score:1)
You make no apologies and just deal (Score:2)
Re:You make no apologies and just deal (Score:2)
Why is $array[0] such a bad thing? (Score:1)
Jason
Re:Why is $array[0] such a bad thing? (Score:1)
@$array[0] binds the @ more tightly than the [0], so it expects $array to be an array ref, which you're de-referencing, rather than $array[0] being the array ref. Except it doesn't work, because as you know, you don't say @x[0], you say $x[0], so when you say @$array[0], it thinks you're dereferencing $array, not @array, and $array doesn't exist (well it might, but it's not what you meant).
Now @{$x[0]} will give you the de-referenced array in the first entry in th
Perl to beginners (Score:1)
And as for Perl 6... I don't like scaring the novices with evil that hasn't yet come to pass.