in reply to Re: another way to split with limit
in thread another way to split with limit
I want to get those two values, how else can I do that with or without using split :) can I do# give stdin a:b or hello:world or etc:etc while (<STDIN>){ ($a,$b) = split(/:/,$_,2); print "$a$b\n"; }
(split(/:/)[0..1]? (split(/:/)[0,1]?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: another way to split with limit
by guillaume (Pilgrim) on Aug 20, 2001 at 00:34 UTC |