![]() |
| |||
| beartiger@gmail.com wrote: > Interpolations within system()...are not allowed. They are. > my $line="system('\"c:/Program Files/HyperSnap-DX 5/HprSnap5.exe\" > -open:$file.gif -save ng $file.png')";> > > open(INFO, ">temp.pl"); > print INFO $line; > close(INFO); > > > system('perl temp.pl'); What on Earth is going on here? 1) You are single quoting the command, which is why your variables are not being interpolated. Use double quotes. 2) $line will now contain (according to perldoc -f system, which I'm sure you have read) the exit status of the program as returned by the "wait" call. 3) You then write this exit status value to a perl file and attempt to execute it? Has the world gone mad? What are you *actually* trying to do? -- Brian Wakem Email: http://homepage.ntlworld.com/b.wakem/myemail.png |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |