in reply to Comma separated list into a hash
Parens are optional in this case, it acts the same as this:my @words = /\w+/g;
my @words = /(\w+)/g;
Now, as an exercise, how does it work? :)
p.s. The code abbove expects the string in $_. If you want to use a different variable, use the syntax:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comma separated list into a hash
by dragonchild (Archbishop) on Apr 26, 2004 at 12:26 UTC | |
by revdiablo (Prior) on Apr 26, 2004 at 17:55 UTC | |
by dragonchild (Archbishop) on Apr 26, 2004 at 18:16 UTC | |
by revdiablo (Prior) on Apr 26, 2004 at 20:24 UTC |