[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [MacPerl] perl line pls





[snip]

> would anyone be kind enough to tell me what is wrong with this line...
>
> <blockquote>
  ^^^^^^^^^^^^ HTML is not Perl

> print  "$hi{$input{'language'}}, $input{'name'} .
  (assuming hi is a function?)

> $how{$input{'language'}}?\n";
> </blockquote>
  ^^^^^^^^^^^^ HTML is not Perl
>
> it just won't compile no matter how I cut it :-(
>

I suspect this may be more like what you need:

$tmp_hi = hi($input{'language'});
$tmp_how = how($input{'language'});print qq[
<blockquote>
$tmp_hi, $input{'name'} .
$tmp_how ?
];

HTH
PS: Get the Blue Camel Book from O'Reilly ( www.ora.com ) , and if you _are_
using MacPerl, 'MacPerl: Power and Ease' from PTF ( www.ptf.com )

-Mark

Mark T. Johns - Unix/Perl/Internet - Faxon, A Dawson Company
        Work                      Home
Email:  mark.johns@dawson.com     mark.johns@usa.net
WWW:    http://38.219.86.21/      http://www.netcom.com/~johnsms/
ICQ:    #15881989                 #17834280


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch