Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perlApp --gui and chdir

by dasgar (Curate)
on Jul 01, 2012 at 20:34 UTC ( #979321=note: print w/replies, xml ) Need Help??


in reply to perlApp --gui and chdir

Sounds like it maybe a perlApp issue. If so, you might find more help at ActiveState's user forums.

Doing a quick search of their forums for "perlapp -gui", I found this which might have the solution to your problem.

http://community.activestate.com/forum-topic/curdir-or-cwd-in-perlapp

Replies are listed 'Best First'.
Re^2: perlApp --gui and chdir
by Anonymous Monk on Jul 01, 2012 at 20:43 UTC
    i am trying to get a logfile to write in a specific location no matter where i run the compiled .exe from so if i do

    my $file = pathtofile;

    When I open a output file handler on the output file i want the data to be written to the path but everytime no matter what i try this is not the case it will write the log file to where ever i run the .exe from

    Thanks for the response

      If you're using an absolute path, what has chdir got to do with it?

      I'll bet you're not doing any error checking either, open can fail you know

        all works fine as a .pl so error checking has nothing to do with this

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979321]
help
Chatterbox?
[ambrus]: Corion, moritz: haha. I moved to different rooms like eight times in the five year's working here so far.
[ambrus]: Discipulus: ouch
[Discipulus]: eh, at the end i cannot compete with brother choroba, i just profited he is at lunch
[pra]: What is the best way to determine if a given string is a valid color?
[Discipulus]: context pra? tk html console naturla language?
[Corion]: Or HTML color like #c0ffee ?
[pra]: Perl/Tk. I want to input a file that will contain color names, but users might not know what names are valid

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-10-17 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (226 votes). Check out past polls.

    Notices?