in reply to Re: Perl - pattern matching
in thread Perl - pattern matching

Thanks!

Replies are listed 'Best First'.
Re^3: Perl - pattern matching
by fabrizio_start_perl (Novice) on Apr 02, 2014 at 13:27 UTC
    Hi, I continue working on my script and now is more powerfull :) ! I have a question about this section
    chomp (my $OVINSTDIR = `echo %OvInstallDir%`); if(-e $OVINSTDIR.'\bin\win64\opcmon.exe'){ my $COMMAND = $OVINSTDIR.'\bin\win64\opcmon.ex +e'; $OPCMON="$COMMAND"; qx[$OPCMON]; }
    when i execute the command $OVINSTDIR.'\bin\win64\opcmon.exe' i got error: 'C:\Program' is not recognized as an internal or external command, because variable $OVINSTDIR contains space (C:\Program Files\HP\HP BTO Software\) How can i manage this behavior ? Thanks, Fabrizio
      Hi, I solve using the character \" inside the variable. $OPCMON="\"$COMMAND\""; Regards, Fabrizio