in reply to Character class in an array

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}$/); } }

Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!