--- Maxim Berlin <[EMAIL PROTECTED]> wrote:
> Hello Greg,
>
> Sunday, July 22, 2001, Greg <[EMAIL PROTECTED]> wrote:
>
> G> I need to split an array up. I need to split on colons and spaces.
> I appear
> G> to be successful splitting on a colon, but am having difficulty
> doing both.
> G> Any advice would be appreciated.
>
> G> # existing...
> G> @_ = ($hour, $minute, $second, $frame, $crap1, $crap2, $crap3,
> $crap4) =
> G> split(/:/,$line);
> (if i correctly understand you) try
> split(/[: ]/,$line);
though I might suggest
split /[:\s]+/, $line
\s will get tabs and other whitespace as well, which may not be what
you want. the + will grab multiples, which also may not be what you want.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]