in reply to split function
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
|
|---|