good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: In my it is printing in the else i want to get output for the for loop in linux.by afoken (Chancellor) |
on Mar 29, 2022 at 06:30 UTC ( [id://11142483]=note: print w/replies, xml ) | Need Help?? |
No, that means the line starts with one or more of of \, w, W, s, S. Your description would be right if the code was m/^(\w|\W|\s|\S)+... Update: The above is wrong. See below. [...] in a regexp is for a character class. (...) is for grouping. See perlre. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|