Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere

by space_monk (Chaplain)
on Nov 09, 2012 at 14:31 UTC ( [id://1003139]=note: print w/replies, xml ) Need Help??


in reply to Calling Windows Batch from Perl, double-quote appearing out of nowhere

Runs fine in cygwin with the following changes:
  • what is the '1' parameter in the system call for? Had to remove first param.
  • Added #!/usr/bin/perl at start

Update: 1 has been answered below, but it seems that feature not supported in Perl under cygwin

A Monk aims to give answers to those who have none, and to learn from those who know more.
  • Comment on Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere

Replies are listed 'Best First'.
Re^2: Calling Windows Batch from Perl, double-quote appearing out of nowhere
by rovf (Priest) on Nov 09, 2012 at 15:18 UTC
    but it seems that feature not supported in Perl under cygwin
    The feature isn't supported on Unix/Linux either - I think that's the reason why it is also absent from Cygwin Perl.

    -- 
    Ronald Fischer <ynnor@mm.st>
Re^2: Calling Windows Batch from Perl, double-quote appearing out of nowhere
by Anonymous Monk on Nov 09, 2012 at 14:37 UTC
    its a wart, see perlport#system, although, if you don't know the answer, or the question, might want to pause and consider if you should jump in :)
      Actually I ran the OPs program on my system, and the program failed because of the wart, so it was a legitimate query. My perl version (5.14) is more recent than the OP, so the program should run, warts and all. :-)
      A Monk aims to give answers to those who have none, and to learn from those who know more.
        but you're not running on windows, cygwin isn't windows

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found