Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > File opening pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 11056 of 11509
Post > Topic >>

File opening problem

by tlloreti@[EMAIL PROTECTED] (Tatiana Lloret Iglesias) May 12, 2008 at 03:05 PM

------=_Part_896_24842907.1210597554319
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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 (  @[EMAIL PROTECTED]
 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 to pass the input parameter ARGV[0] with / with \ with relative
path ... but nothing

any idea?

Thanks a lot!
T

------=_Part_896_24842907.1210597554319--
 




 3 Posts in Topic:
File opening problem
tlloreti@[EMAIL PROTECTED  2008-05-12 15:05:54 
Re: File opening problem
chas.owens@[EMAIL PROTECT  2008-05-12 09:10:34 
Re: File opening problem
krahnj@[EMAIL PROTECTED]   2008-05-12 11:31:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 21:09:00 CDT 2008.