in reply to Re^3: Perl 'grammar'
in thread Perl 'grammar'
I think I was reacting more to the parameter unpacking. The sub is handed a compound, and the parameter is stored and then broken apart. I tend to think of that breaking as part of the unpacking process, so in essence get two params passed to the sub in a particular format, hence my "first" line produces those two variables.
It all comes down to chasing errors, I suppose. I've gotten the habit of putting in a print (or warn) at subroutine entry with the parameters passed controlled by a debug variable. With the one-liner, you can't really do that. But then again, its so bloody simple, perhaps its not necessary.
--woody
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl 'grammar'
by gamache (Friar) on Jan 10, 2008 at 18:10 UTC | |
by WoodyWeaver (Monk) on Jan 10, 2008 at 18:42 UTC |