Still cannot see why Perl complains that Could not open file for reading.
File or directory does exist.
I have modified my script and now using Getopt::Long module instead of the
@ARGV variable. Can someone take a look?
The script is now run with command line options like this:
myscript --master
> I am on Windows so it should not be case-sensitive. The script and all
> required files in one folder. I pass 3 arguments to the script (script.pl
> file1 file2 file3)and I can open the first file stored in $ARGV[0] as seen
> below:
>
> my $ad_clients = shift @ARGV;
>
> open (ADFILE, "<", $ad_cli
I am on Windows so it should not be case-sensitive. The script and all
required files in one folder. I pass 2 arguments to the script and can I can
open open the file in the $ARGV[0].
my $ad_clients = shift @ARGV;
open (ADFILE, "<", $ad_clients) or die "Could not open $ad_clients for
reading: $!
On Thu, 2008-05-29 at 11:45 +0100, Mimi Cafe wrote:
> my script is in the same directory as my files, but it cannot find the file
> ABC.txt in open() below.
>
> foreach my $supplied (@ARGV){
> # Output file name set of element currently processed.
>
> # Open file to read from.
> open (INPUTFI
On Thu, May 29, 2008 at 6:45 PM, Mimi Cafe <[EMAIL PROTECTED]> wrote:
> my script is in the same directory as my files, but it cannot find the file
> ABC.txt in open() below.
>
> foreach my $supplied (@ARGV){
> # Output file name set of element currently processed.
>
> # Open file to read from.
>
- Original Message
From: Jeff Peng <[EMAIL PROTECTED]>
To: Perl Beginners
Sent: Wednesday, May 21, 2008 15:53:00
Subject: Re: No such file or directory
> open(RULES, 'rule.pl')
please use full path if you don't know where you are exactly.
On Wed, May 21,
> open(RULES, 'rule.pl')
please use full path if you don't know where you are exactly.
On Wed, May 21, 2008 at 3:45 PM, anthony brooke <[EMAIL PROTECTED]> wrote:
--
Jeff Peng - [EMAIL PROTECTED]
Professional Squid supports in China
http://www.ChinaSquid.com/
--
To unsubscribe, e-mail: [EMAIL
anthony brooke wrote:
> Hello, I know that this is a very common problem, but I am very sure that
> the file exist in that directory, also its permission is -rwxrwxrwx , why
> does it give such an error ? What are the other potential problems that cause
> this ? Thanks
>
> Send instant mes
anthony brooke wrote:
> Hello, I know that this is a very common problem, but I am very sure that
> the file exist in that directory, also its permission is -rwxrwxrwx , why
> does it give such an error ? What are the other potential problems that cause
> this ? Thanks
>
> Send instant mes
anthony brooke wrote:
Hello, I know that this is a very common problem, but I am very sure that the
file exist in that directory, also its permission is -rwxrwxrwx , why does it
give such an error ? What are the other potential problems that cause this ?
Thanks
Send instant messages to your
That's not ok.
use File::Path;
mkpath();
if you want that functionality.
> -Original Message-
> From: James Edward Gray II [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: "No Such File or Directory"
>
>
> Okay, here's a different
At 10:12 AM 10/24/2001 -0500, [EMAIL PROTECTED] wrote:
>elementary? oooh, that hurts =)
Hey, everyone does it (or something like it), that's the only reason to
call it elementary - because we manage to keep making the same mistakes and
forgetting to check the obvious. You want to know how many
elementary? oooh, that hurts =)
but you are right, I should have been using -w
Peter Scott <[EMAIL PROTECTED]>
10/24/2001 10:03 AM
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:
Subject: Re: No such file or directory exists
At 09:01 AM 10/24/2001
At 09:01 AM 10/24/2001 -0500, [EMAIL PROTECTED] wrote:
>I'm working with my perl scripts in Linux and Windows. my scripts were
>running fine when I ran them as "perl myscript.pl"
>
>but when I tried to execute the perl script using only its name
>(./myscript.pl) then I would get the message "No s
walter valenti <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 10/24/2001 09:11 AM
>
>
> To: [EMAIL PROTECTED]
> cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject:Re: No such file or directory exists
>
> Hi,
> look the
15 matches
Mail list logo