in reply to Pattern matching across an array
Your confusion is due to $", the list separator, which defaults to a space. Thus, "@array" has the value A B C D E. You simply need to make allowance for this
Beware: if you set the separator to '', or use join as robartes has suggested, then you won't differentiate between qw/AB CD E/ and qw/A B C D E/, which may or may not be what you want (similarly, if you manage to get a space into one of the array values, this may cause problems.)
--
Tommy
Too stupid to live.
Too stubborn to die.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern matching across an array
by ihb (Deacon) on Feb 05, 2003 at 22:44 UTC | |
by tommyw (Hermit) on Feb 06, 2003 at 10:46 UTC |