Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[LanX]: hmm   Chatterbox FAQ doesn't talk about breaking up long words
[marto]: breakin' up is hard to do
[LanX]: 123456789012345678 90 123456789012345678 901234567890
LanX should break up with false friends ;)
[Discipulus]: last hour of cb breaks it differently..

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-07-24 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (350 votes). Check out past polls.