in reply to Re: Regular Expression: search two times for the same number of any signs (updated)
in thread Regular Expression: search two times for the same number of any signs
Hi Hauke,
I am trying to fully understand all the new things. One question to your construct "for"
print "$_ =>\n" for qw/ 1 12 123/;
is working fine. I like this style. But I can not combine it with an if or multiple lines.
{print "$_ =>\n" if $_=/1/ } for qw/ 1 12 123/;
gives me floowing error message: "Missing $ on loop variable at ./test3.pl line 2." and I can not understand, what is mean by this error meassage.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regular Expression: search two times for the same number of any signs (updated)
by haukex (Archbishop) on Nov 29, 2016 at 13:19 UTC | |
by Anonymous Monk on Nov 29, 2016 at 14:33 UTC |