Update: nemp's post above this got it first and got it right.
It should be $" not $, Below corrected.
@a = ( 'a', 'x', 'z' ); # simplified array { # restrict scope of changes to $, local $"=''; # change from default space to null string while(<>) { print if(/^[@a]{3}$/); } }
In reply to Re: Character class in an array
by BrowserUk
in thread Character class in an array
by nikto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |