Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( #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
Node Status?
node history
Node Type: note [id://1003139]
help
Chatterbox?
[ambrus]: marto: yep, no surprise

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

















    Results (263 votes). Check out past polls.

    Notices?