---------- Forwarded message ----------
From: RENATO AUGUSTO CORREA DOS SANTOS <rcs.un...@ig.com.br>
Date: Wed, Sep 25, 2013 at 5:09 PM
Subject: Re: checking for file existence
To: Peter Ezetta <peter.eze...@zonarsystems.com>


Dear,

Thank you so much for your quick help.

This list seems to be useful for us begginers.

The problem was that I was typing the file name without taking the case
sentivity into account.

That is actually working fine.

Thanks a lot.

Renato.


On Wed, Sep 25, 2013 at 5:07 PM, Peter Ezetta <peter.eze...@zonarsystems.com
> wrote:

>  Hi Renato,
>
>  Welcome to Perl and to the list!
>
>  I took a quick run through your code, and it's working fine for me.
>
>  Are you calling it with "perl script.pl <filename>"?  The behavior you
> describe almost sounds like you are not providing the argument when you
> call the script.
>
>  Hope this was helpful!
>
>  Peter
>
>   On Sep 25, 2013, at 12:38 PM, RENATO AUGUSTO CORREA DOS SANTOS <
> rcs.un...@ig.com.br> wrote:
>
>   Hi, all.
>
> I am a very begginer in PERL starting today in this mailing list! :-) I
> will try to work especially with Bioinformatics.
>
>  I am trying to verify the existence of a file in PERL; however, is seems
> not to work. It always returns "The file $file_seqs does not exist!!!".
>
>  Do you know where I am making a mistake?
>
>  <code>
>  #!/usr/bin/perl
>
> use strict;
>
> my $file_seqs;
>
> $file_seqs = $ARGV[0];
>
>         if (!-e $file_seqs)     {
>         print "The file $file_seqs does not exist!!! \n";
>         exit(0);
>         }
>         else    {
>         print "The file $file_seqs exist!!! \n";
>         }
>  </code>
>
> --
>   *Renato Augusto Corrêa dos Santos (Undergraduate Researcher)*
> Bioethanol Science and Technology Laboratory (ABTLuS-CNPEM)
>  +55 19 9722 5665
>
>
>
> ------------------------------
> Confidentiality Notice: This e-mail may contain proprietary information
> some of which may be legally privileged. It is for the intended
> recipient(s) only. If you believe that it has been sent to you in error,
> please notify the sender by reply e-mail and delete the message. Any
> disclosure, copying, distribution or use of this information by someone
> other than the intended recipient(s) is prohibited and may be unlawful.
>



-- 
*Renato Augusto Corrêa dos Santos (Undergraduate Researcher)*
Bioethanol Science and Technology Laboratory (ABTLuS-CNPEM)
+55 19 9722 5665



-- 
*Renato Augusto Corrêa dos Santos (Undergraduate Researcher)*
Bioethanol Science and Technology Laboratory (ABTLuS-CNPEM)
+55 19 9722 5665

Reply via email to