Re: using print << within subroutines

2001-06-04 Thread Paul
--- Me <[EMAIL PROTECTED]> wrote: > > sub header { > > print << head; > > Content-type: text/html\n\n > > > > Control Panel > > > > head > > } > > As dumb as this sounds, you can't have the 'head' > at the end indented. Well, not without some extra > stuff. As a simple

Re: using print << within subroutines

2001-06-03 Thread Christian Campbell
[EMAIL PROTECTED] wrote: > within my code. it works like a charm. however, when i try: > > sub header { > print << head; > Content-type: text/html\n\n > > Control Panel > > head > } > > is this not working because of a fault in my syntax? or is this not > possible withi

Re: using print << within subroutines

2001-06-03 Thread Me
> sub header { > print << head; > Content-type: text/html\n\n > > Control Panel > > head > } As dumb as this sounds, you can't have the 'head' at the end indented. Well, not without some extra stuff. If you run perldoc perldata You'll find: If you want you

Re: using print << within subroutines

2001-06-03 Thread Eric Beaudoin
At 16:42 2001.06.03, you wrote: >hello all- >quick question that is definitely from a neophyte. > >i am currently using: > >sub begin { > print "Content-type: text/html\n\n"; > print "\n"; > print "Control Panel\n"; > print "\n"; >} > >sub footer { >print "\n"; >print "\n"; >} > > >wit

using print << within subroutines

2001-06-03 Thread charles
hello all- quick question that is definitely from a neophyte. i am currently using: sub begin { print "Content-type: text/html\n\n"; print "\n"; print "Control Panel\n"; print "\n"; } sub footer { print "\n"; print "\n"; } within my code. it works like a charm. however, when i