in reply to a question on style
Of course thats not bad, and if your really going for the
non-cluttered, more style code
but I always look at if/ifels/else statements as a good chance to put in some nifty debugging options, IE
might look better asif ($x = $y) { print "$y = $x\n"; }
which is basically the same thing, but easyier to type and read.print "$y = $x\n" if ($x = $y);
but I always look at if/ifels/else statements as a good chance to put in some nifty debugging options, IE
but thats just my two cents.if ($y eq $x) { print "$y = $x\n"; } elsif ($debug eq 1) { print "$y != $x\n"; }
In Section
Seekers of Perl Wisdom