in reply to Re: In my it is printing in the else i want to get output for the for loop in linux.
in thread In my it is printing in the else i want to get output for the for loop in linux.
This is bizarre to me: m/^[\w\W\s\S]+...
This means the line starts with one or more characters which are either a word character or not a word character or a space character or not a space character...
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: In my it is printing in the else i want to get output for the for loop in linux.
by Marshall (Canon) on Mar 29, 2022 at 09:15 UTC | |
by afoken (Chancellor) on Mar 29, 2022 at 11:19 UTC | |
by hippo (Archbishop) on Mar 29, 2022 at 12:14 UTC |