in reply to Re: splitting issues
in thread splitting issues
(Note also the s modifier that's very easy to forget.)/([^:]*):?(.*)/s; # Keeping it simple /([^:]*)(?::(.*))?/; # Making it even more analogous.
I can't find any differences between this and split(/:/, $_, 2), except for scalar context execution, were you get rid of the old @_ behaviour.grep defined, /([^:]*)(?::(.*))?/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: splitting issues
by Anonymous Monk on Jan 25, 2002 at 10:52 UTC |