Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
go ahead... be a heretic
 
PerlMonks  

Re^3: perlApp --gui and chdir

by Anonymous Monk
on Jul 01, 2012 at 21:00 UTC ( #979326=note: print w/ replies, xml ) Need Help??


in reply to Re^2: perlApp --gui and chdir
in thread perlApp --gui and chdir

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


Comment on Re^3: perlApp --gui and chdir
Re^4: perlApp --gui and chdir
by diamondsandperls (Beadle) on Jul 01, 2012 at 22:11 UTC
    all works fine as a .pl so error checking has nothing to do with this

      all works fine as a .pl

      Prove it.

      so error checking has nothing to do with this

      Sure it does.

        my apologies yes error checking on path would help the problem is after compiling finding the current user is failing

        my $olduserid = qx{whoami};
        chomp $olduserid;
        my ($userid) = $olduserid =~ /.*\\(\w+)/;

        my $path = "C:/Users/$userid/Desktop/";

        open to recommendations to determine current user bc after compiling my code is failing on path.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2013-05-25 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (521 votes), past polls