Chris Knipe ha scritto: > Hi, > > I have two lines (well, 1 line is headers, then there follows a range of > data)... > > # INTERFACE > RADIO-NAME MAC-ADDRESS AP SIGNAL-STRENGTH TX-RATE UPTIME > 0 interface_name radio > 00:0C:42:1F:2C:8D yes -63...@18mbps 9Mbps 2h2m38s > > I'm looking for a > foreach my $Line (@Output) { > my ($interface, $radio, $mac, $ap, $signal, $txrate, uptime) = > split(/whatidontknow/, $Line, 7); > } > > Can anyone perhaps help out with the what I don't know bit?? FYI - The > columns should be fixed lengths, if that helps perhaps... > > Thanks, > Chris. > > > > > >
Hi. Could maybe a simple split(/\s+/ $Line, 7); work? cheers paolino -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/