You can pull the file into a 2-d array more easily:
The quoted space arg to split is magical, it takes care of leading and trailing whitespace too.#!/usr/bin/perl -w use strict; open (FILE, $ARGV[0]) or die $!; my @array = map {[split " "]} <FILE>; close FILE or die $!; for (0..$#array) { $array[$_][8] =~ s/%//g; }
After Compline,
Zaxo
In reply to Re: split function
by Zaxo
in thread split function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |