Re: Help needed with '-e' operator

2009-07-09 Thread Anu P
9, 2009 7:40:00 AM Subject: Re: Help needed with '-e' operator On Wed, Jul 8, 2009 at 6:57 PM, John Refior wrote: > On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > >> I am trying to use the '-e' filetest operator and encountered some wired >> behavior. >>

Re: Help needed with '-e' operator

2009-07-09 Thread Robert Citek
On Wed, Jul 8, 2009 at 6:57 PM, John Refior wrote: > On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > >> I am trying to use the '-e' filetest operator and encountered some wired >> behavior. >> I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz >> file is in the same directory

Re: Help needed with '-e' operator

2009-07-08 Thread John Refior
On Wed, Jul 8, 2009 at 7:34 AM, Anu P wrote: > I am trying to use the '-e' filetest operator and encountered some wired > behavior. > I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz > file is in the same directory where script is executed. > > unless (-e $file) { > print

Re: Help needed with '-e' operator

2009-07-08 Thread Robert Citek
The code you wrote should work as it worked for me when I tested it on a 3 GB sized file: $ ls -sh 3gb-file 3.0G 3gb-file $ perl -le '$file="3gb-file" ; unless (-e $file) { print ("nope") ; } else { print ("yup") ; } ' yup I tested it with files as large as 10 GB and it worked. Could it be that

Help needed with '-e' operator

2009-07-08 Thread Anu P
Hi, I am trying to use the '-e' filetest operator and encountered some wired behavior. I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz file is in the same directory where script is executed. unless (-e $file) { print ("ERROR: $file does not exist\n"); exit(1); } This d