in reply to Simplify This
------We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
I agree with dragonchild. I wouldn't use substr like that:
my $record = " 127.0.0.1 1COMPUTER1 09/13/30828 22:48:05"; my @iparray = map {s/ //g;$_} split /[.]/, substr ($record,0,17); print "@iparray"; [download]
Output:
dave