Two problems:
Here is your first block rewritten:
Those blocks are so similar, I think you should consider making a sub of them. Suggested syntax findword FILENAME, PATTERN;.my @word1 { local *FILE; # make this a 'my $fle;' in 5.6 open( FILE, "< /path/to/$filename1" ) or die( "can't find file1: $ +!" ); while (<FILE>) { push @word1, /EditorName\s+(\w+)/g; } close FILE or die $!; }
After Compline,
Zaxo
In reply to Re: returning word from a file position
by Zaxo
in thread returning word from a file position
by Kentdn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |