Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
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
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>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-09-18 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls