in reply to splitting lines a number of times
YAWTDI
$line =~ s/[(),;]//g; my @split1 = split " ", $line;
And yes, once you have these split up, they can be used in numeric calculations.
Just a quick note, when you're referring to a single element of an array, use $split1[0] rather than @split1[0]. See "perldoc -q @" and look at the answer for "What is the difference between $array[1] and @array[1]?"
|
---|
In Section
Seekers of Perl Wisdom