in reply to Re: Loading a Hash directly from a Regex
in thread Loading a Hash directly from a Regex
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Loading a Hash directly from a Regex
by hakkr (Chaplain) on Feb 14, 2002 at 17:18 UTC | |
by merlyn (Sage) on Feb 14, 2002 at 17:27 UTC | |
by hakkr (Chaplain) on Feb 15, 2002 at 09:18 UTC |