Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Porting Commands to Windows

by stylechief (Sexton)
on Sep 15, 2014 at 18:37 UTC ( [id://1100627]=note: print w/replies, xml ) Need Help??


in reply to Porting Commands to Windows

You mention that you never see the results of your commands. If the module you are using does not have a method to help with this, e.g.
my $error = $self->message();
or something similar. You could, for development and testing purposes, use something like
$result = qx(mkdir $path);
To view results.

eval would also provide information if there are problems:
eval{$self->sys('cmd /C mkdir', '-p', "$self->{tmp}/attach")}; if ($@){ print "$@\n"; }
SC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found