slow_leaner schreef: > Slow_leaner: >> Is there a way I can marge FILE2 into FILE1 or reverse together >> without creating a new merge file. I am not sure there are a better >> way to do it. If you give me some hint or help, i would appreciate >> it.
What do you exactly mean by "marge" or "merge"? > I know how to read one file into array. BUT Why would you want to read a file into an array? I hardly ever do that, and I do a lot of Perl. Just process files by line. Here a template to clean up your open() act: my $filename = "/usr/test1.txt"; # why in /usr? { open my $fh, "<", $filename or die "Error with '$filename': $!"; while ( <$fh> ) { ... # process a line } } -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/