Stefan Haberer wrote: > > hi guys, > I would like to split a line like that > > # FRI MAY 02 .... > > in two parts: > > $bash = # > $rest = FRI MAY.... > > in my version ($bash, $rest) = split(/\s/, $line); > > $rest only contains "FRI" because the line is splitted at every blank. how can > I achieve > that the line ist splitted only at the first blank after # ???
my ( $bash, $rest ) = split ' ', $line, 2; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]