in reply to foreach and if inside <<ENDHTML? Can they work?

Congratulations on moving from print print print to print <<HERE

The sensible thing to do is get the processing out of the way first:

for(a..z){ $alphabet .= $_; } if ($x ne 'biteme'){ $printy_stuff = qq( <br>Services:<br> $FORM{'GraphicsDesign'}<br> $FORM{'Screenprinting'}<br> $FORM{'Digitizing'}<br> $FORM{'Embroidery'}<br> $FORM{'Manufacturing'}<br> ); } else { $printy_stuff = 'no input'; } print <<HERE Here's the alphabet: $alphabet Here's some graphics stuff if you entered anything: $printy_stuff HERE


($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: Re: foreach and if inside <<ENDHTML? Can they work?
by frogboy (Initiate) on Aug 13, 2003 at 05:55 UTC
    ok thanks for that. I just can't get the foreach to work. It not that big of deal since it's just for me to see all the varibles.