26 Mar
2000
26 Mar
'00
11:03
Hi,
I am trying to read a file in Perl and put each line into 2 variables. Each line constats of something like 2:255/90 asb32331
How do I read each line and split it.
Ignore sorted :) Case of RTFM :)
Oh! That's so helpful, without telling where to read... I'd do: open(FILE, "program |"); while ($in = <FILE>) { ($first,$last) = split $in; } The split line may or may not work. man perlre should do the trick. Also man perl is a great piece of info... /Mattias -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/