I really need help with that system call thing! Here it is again:

Hi List,

I have code that looks like this:


# #:# #:#:#:#:# #:#:#:#:#:# my $funk = '/home/jdd/sbin/idlwave2outline.pl'; my $jam = '/home/jdd/sbin/outline2html.pl -p -t'; my $web_dir = '/home/jdd/www'; ....Stuff Happens #:#:#:#:#:# #:#:#:#:# #:# # # #:# #:#:#:#:# #:#:#:#:#:# sub makedocs { $code = $File::Find::name; $name = $web_dir.'/'.$_; system("$funk $code | $jam > $name.html") if (/\.pro$/ || /\.idl$/); } #:#:#:#:#:# #:#:#:#:# #:# #


Now, whenever I run this I get an error in the system call:


Can't open -p: No such file or directory
Can't open -t: No such file or directory

which is just saying that it cannot open the command line options that I'm trying to pass to outline2html.pl. So what is the right way to get those options through?

Is there a way to call external perl scripts other than using the system() function?
- -
-- \\ // --
--- \\ // ---
---- jason x ----
--- // \\ ---
-- // \\ --
- -


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




Reply via email to