Re: File opening problem

2008-05-12 Thread John W. Krahn
Tatiana Lloret Iglesias wrote: Hi all! Hello, i'm running the following dummy program which just opens a file and I get an error (die message) #!/usr/bin/perl if ( @ARGV[0] eq '' ) @ARGV[0] is an array slice (a list) and it makes no sense to compare a list to a string. It looks like

Re: File opening problem

2008-05-12 Thread Chas. Owens
On May 12, 2008, at 09:05, Tatiana Lloret Iglesias wrote: Hi all! i'm running the following dummy program which just opens a file and I get an error (die message) #!/usr/bin/perl if ( @ARGV[0] eq '' ) { print "\nUSAGE:\n\t genenames.pl genes.txt \n\n"; exit; } my $file = $ARGV[0];

File opening problem

2008-05-12 Thread Tatiana Lloret Iglesias
Hi all! i'm running the following dummy program which just opens a file and I get an error (die message) #!/usr/bin/perl if ( @ARGV[0] eq '' ) { print "\nUSAGE:\n\t genenames.pl genes.txt \n\n"; exit; } my $file = $ARGV[0]; open(FICH,"$file") or die "cannot open $file"; I've tried t