> > Why are you returning the results of //g to an empty list, in void context?
Forcing list context; //g alone is scalar, which using that regex, it grabs
the first character, executes the code.. And that's it. As a list, it does
what it should do, so to say :)
If you are going to skip whitespace characters anyway then just do:
>
> for my $letter ( /\S/g ) {
>
> Which will create a list of only non-whitespace characters.
Oh, that didn't even cross my mind. Thanks!
Brian.
