George Gallen on 27 Sep 2006 19:23:00 -0000 |
Bareword found where operator expected at askticketdisc.cgi line 57, near "<butt on>another button test</button" (Might be a runaway multi-line // string starting on line 56) (Missing operator before button?) Semicolon seems to be missing at askticketdisc.cgi line 58. syntax error at askticketdisc.cgi line 56, near "button>" $qtest = EOT; <div id='qtest'> <button>this is a button test</button><br> <-- line 56 <button>another button test</button> </div> EOT I'm running PERL 5.8.0. Might this have anything to do with it? BTW, I tried searcing for here-doc and there was no info. George > -----Original Message----- > From: plug-bounces@lists.phillylinux.org > [mailto:plug-bounces@lists.phillylinux.org]On Behalf Of Walt Mankowski > Sent: Wednesday, September 27, 2006 3:09 PM > To: plug@lists.phillylinux.org > Subject: Re: [PLUG] RE: web/perl issue? > > > You need an equals sign there: > > $test = << EOT; > <div id='qtest'> > <button>this is a button test</button><br> > <button>another button test</button> > </div> > EOT > > You can also do variable interpolation inside a here document: > > my $div_id = 'qtest'; > $test = << EOT; > <div id='$div_id'> > <button>this is a button test</button><br> > <button>another button test</button> > </div> > EOT > > For all the gory details on this syntax, run "perldoc perlop" and > search for "here-doc". > > Walt > ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|