2008/9/8 Jeff Pang <[EMAIL PROTECTED]>:
> 2008/9/8 Adams Paul <[EMAIL PROTECTED]>:
>> #!/usr/bin/perl;open(MYFILE,"C:\Program Files\Internet Explorer.exe");
>
> If you call an external program in Perl, shouldn't use "open".

adjust: I mean shouldn't use open directly like this way.
but you could open a pipe for an external command, like:

open HD, "ls -l|" or die $!;
while(<HD>) {
    print;
}
close HD;

this is the same as:  system("ls -l");

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to