drieux, et al -- ...and then drieux said... % % On Tuesday, June 4, 2002, at 02:38 , John W. Krahn wrote: % [..] ... % >> ( $PING1 = $_ ) =~ s/\D+//g; % > % >Sorry, missed a step. :-) % > % > ( $PING1 = (split)[6] ) =~ s/\D+//g; ... % but notice that your first one squeezes out all of the 'space' % and would in the case of say
I think his first PING1 line is supposed to be entirely replaced by the second PING1 line, the step he left out having been to split the line before stripping out spaces. The second line above, if handed a whole ping output line, does first split and then assign field 6 to $PING1 and *then* keep only digits, right, rather than keeping only digits and then splitting? % ... % or am I missing something in the voodoo???? I hope so, because if you aren't then I am :-) % % % ciao % drieux TIA & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg25426/pgp00000.pgp
Description: PGP signature