[EMAIL PROTECTED] 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);
Change this line to ($bash, $rest) = split (/\s/, $line, 2); perldoc -f split > > > $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 # ??? > > thanks in advance! > > greetings > > stefan > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]