On Mar 31, 2004, at 6:53 PM, Bohdan Peter Rekshynskyj wrote:
I still would try to do something such as (rough script here)
open <COMMAND> "ls *.files |"; # Don't forget to code a die here if unsuccessful in opening. Defensive programming!
while <COMMAND> {
$theParms .= $_; # you may or may not need to cho(m)p !
}
$theCommand = "system open '" . $theParms . "'";
system (or eval) ($theCommand); # and check for RC...
Something like that, as above in Perlese, I think, should do the trick!
No, that won't work. As explained earlier by Chris, you cannot do anything with perl & system() that you couldn't just do at a shell prompt.
The other Chris posted an example with Mac::Glue which solves the original problem, have you tried that?
-Ken