in reply to Re: Opinion: where Perl5 wasn't attractive for me
in thread Opinion: where Perl5 wasn't attractive for me
If someone use my my my near the all variables, why shouldn't it be default? I don't know how often others use my. If >80% variables precede by "my" it could be stated as default, if not then not.
>> $_ = scalar reverse works. Additional word.
In book from where I started to learn Perl (it is translated to my language and shortened) there were some tables: [special symbols], [logical operators], [other operators], [precedence operators](my favourite), [regex metacharacters], [regex modifiers], [special variables],... but there were no table where are written: function + what for it asks (scalar or list). Maybe it would be useful table for newcomers...
"$i > 5 or (print "No"), last"
This works as I wanted. For example:
while(<>){ /^i'm tired$/i and (print "Good by!"), last; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Opinion: where Perl5 wasn't attractive for me
by roboticus (Chancellor) on Nov 20, 2014 at 12:38 UTC | |
by rsFalse (Chaplain) on Nov 20, 2014 at 13:01 UTC | |
|
Re^3: Opinion: where Perl5 wasn't attractive for me
by Anonymous Monk on Nov 20, 2014 at 13:26 UTC |