That's debateable. If someone puts =~ and $_, I am forced to wonder if something is going on that requires them to not merely accept the default. It's misleading. I don't see how that makes it "more readable".which is more readable$_=~ /^(\d+)\W\d+\W\d+\W(\d+)\W\w+/;
Regex matches against $_ are the common form. =~ is an exception. To use an exeception to still perform the common operation is a bit like using the emergency handbrake at every stop light.
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Loading a Hash directly from a Regex
by merlyn
in thread Loading a Hash directly from a Regex
by Gyro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |