in reply to Re^2: Accessing variables
in thread Accessing variables
?#!/usr/bin/perl my ($file1,$file2); open(FILE1,"<$ARGV[0]"); while(<FILE1>) { chomp($_); $file1 = $_; $file1=~s/\s+//; open(FILE2,"<$ARGV[1]"); while(<FILE2>) { print "<$file1> \n"; } close FILE2; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Accessing variables
by pavanmach (Novice) on Feb 02, 2010 at 11:52 UTC |