Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

By using open() unable to open the file

by perladdict (Chaplain)
on Jul 14, 2007 at 13:31 UTC ( #626628=perlquestion: print w/replies, xml ) Need Help??
perladdict has asked for the wisdom of the Perl Monks concerning the following question:

vi /remote/scm/rsync/builds/v_dialer/FailedInformal/
will opens a buildlog,i assigned this absolute path to $path variable
open(F,"$path1)or die "can't open the file $!";
i want to know what was the reason why open()is notable to open the build.log by same path from command prompt its opning...where i am doing wrong....seeking solutions from wise monks.
  • 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 (Pope) 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': $!";
      I am extreemly sorry
      by mistake i updated once again the same thread... i will commit u it will not happens once again

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://626628]
Approved by Corion
[marto]: hey Corion, good weekend?
[Corion]: marto: Yeah, even though I didn't write any code :)
[Corion]: But at least I have a plan of action to move the site to https, played some (free!) VR games with friends and watched the plans for the next German Perl workshop progress ;)
[Corion]: AltSpace VR is amazingly good - highly polished and with some of the games you get for free what you'd pay EUR 20 or EUR 40 otherwise
[Corion]: But maybe it's also due to that I play with friends, which makes a game more enjoyable anyway ;)
[Corion]: Oh - I released a new version of some module, thanks to a pull request. But I don't consider "update Makefile.PL" and "update author tests" as "writing code" ;-D

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-08-21 09:24 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (319 votes). Check out past polls.