It's all finished and working. Made some lovely mistakes. Thanks for all the help, everyone.
-Jay Godbey Solaris Systems Administrator Adelphia Business Solutions http://www.adelphia.net Owner: knightsaber.org [EMAIL PROTECTED] On Mon, 11 Feb 2002, John W. Krahn wrote: > Jay Godbey wrote: > > > > Begin...code snippet.. > > > > &{sub { my $replace = $name }}; > > You create an anonymous subroutine (sub {}) and then dereference it > (&{}). This has the effect of limiting the scope of $replace. What do > you really want to do here, it is not clear from the code? > > > > my $template=("/usr/local/apache/htdocs/bio.epl"); > > The parentheses are redundant and you don't need the string interpolated > so you should use single quotes. > > my $template = '/usr/local/apache/htdocs/bio.epl'; > > > > my $output=("/usr/local/apache/htdocs/" . &(sub { $replace }} . ".html"); > ^^^^^^^^^^^^^^^^^^^ > ??????????????????? > What are you trying to do here? > > > > HTML::Embperl::Execute ( { inputfile => $template, > > param => [ $name, $position, $gender, $age, > > $height, $weight, $location, > > $hobbies, $likes, $dislikes, > > $interests, $comments ], > > outputfile => $output } ); > > > > End...code snippet.. > > > > Begin...error messages... > > > > Global symbol "$name" requires explicit package name at ./bio line 42. > > syntax error at ./bio line 44, near "&(sub " > > Global symbol "$replace" requires explicit package name at ./bio line 44. > > Execution of ./bio aborted due to compilation errors. > > > > End...error messages... > > > > My script nearly works except for this problem. What explicit package > > name? What am I missing? I have apache installed in /usr/local/apache, > > mod_perl installed, and HTML::Embperl installed. Something else I need to > > grab? Or am I not declaring something right? > > > > John > -- > use Perl; > program > fulfillment > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]