On Aug 21, 2006, at 8:51 PM, Mazhar wrote:

use strict;
use warnings;
my $file_name=$ARGV[0];
open(FILE,"$file_name") || die "Not been Accessed" ;

No quotes needed around $file_name there.

@host_array=<FILE>;

That variable was not declared before, so that script does not run because it does not compile. Perhaps you are running a program which is not the one you are editing?

-- fxn




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to