Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

By using open() unable to open the file

by perladdict (Chaplain)
on Jul 14, 2007 at 13:31 UTC ( [id://626628]=perlquestion: print w/replies, xml ) Need Help??

perladdict has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on By using open() unable to open the file

Replies are listed 'Best First'.
Re: By using open() unable to open the file
by Corion (Patriarch) on Jul 14, 2007 at 13:37 UTC

    You do not show us what error message you get. This is most important to us. Also, you do not show us what the value of $path is. Most likely, it is not what you believe it is. Also, I note that this exact problem is already discussed in problem to open a specified path file in open system call. I consider it rather rude of you to ignore the responses you got there and to create a new thread instead.

    On a more practical side, I'm confident that you will find the following code explains your error to you:

    use strict; use warnings; my $path1 = "..."; open my $fh, "<", $path1 or die "Can't open file '$path1': $!";
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://626628]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-25 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found