in reply to Re: Scalar range operator again
in thread Scalar range operator again
Yes, I have read all those articles on the internet. But nowhere was described this counterintuitive behaviour. Of course, they point out that perl -we'my @l = qw/ac qw/; for (@l) { print if /a/../c/ }' would print
ac and the same only with three dots prints acqw. This is completely understandable but not the case with @l = qw/ca qw/. Maybe it's really better to avoid such constructs as other monk has said.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Scalar range operator again
by dsheroh (Monsignor) on Jul 07, 2012 at 08:08 UTC | |
by kejv2 (Acolyte) on Jul 07, 2012 at 10:33 UTC | |
by Anonymous Monk on Dec 15, 2012 at 07:58 UTC |
In Section
Seekers of Perl Wisdom