Timothy Johnson wrote: >>my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/; > > > Don't do that! $a and $b are special variables used by perl for sorting > (and even if they weren't it would be bad form to use variables whose > names have no bearing on their contents).
While $a and $b are special, there's nothing to stop you from using them (assuming you aren't sorting in the general area). Having said that, I would also say it's not good practice. $x and $y would be better. Having said that, I would also say that $a and $b were a bad choice for the sorting vrbls. Let's hope something more intuitive (special looking) for Perl 6 - like a separate namespace/syntax for special vrbls (like maybe $^a, $^b or some such). _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
