Re: my in conditionals

2002-11-27 Thread A. Pagaltzis
* Paul Makepeace [EMAIL PROTECTED] [2002-11-27 08:53]: perl apparently doesn't consider $d exists by the second $d and issues an error. Can someone explain this? (Esp. in light of all this sequence point talk.) The entire statement ist compiled at a time; at this time, $d is undeclared. The

Re: my in conditionals

2002-11-27 Thread Paul Johnson
Bart Lateur said: On Wed, 27 Nov 2002 04:41:13 +, Paul Makepeace wrote: $ perl -Mstrict -le 'print one if (my $d = 1) $d' [or indeed if ((my $d = 1) $d) {...} ] perl apparently doesn't consider $d exists by the second $d and issues an error. Can someone explain this? (Esp. in light of

Alternative approaches to parsing a configuration file

2002-11-27 Thread Andrew Savige
Text::Balanced is now a standard Perl 5.8.0 module, which seems a good thing to me (though I have not used it before). Anyway, it seems a handy tool for a chore I have parsing a configuration file. I suppose I might use a bigger Parse::RecDescent hammer for this job, or do it in some other way.