SPUG:Here documents
SPUG-list-owner
tim at consultix-inc.com
Fri May 2 14:24:00 CDT 2003
On Fri, May 02, 2003 at 12:06:38PM -0700, Brian Hatch wrote:
That's a FAQ, so you can find the answer via "perldoc -tq document".
=======================================================
| Tim Maher, Ph.D. tim at timmaher.org |
| JAWCAR ("Just Another White-Camel Award Recipient") |
| SPUG Founder & Leader spug at seattleperl.org |
| Seattle Perl Users Group www.seattleperl.org |
=======================================================
>
> Ok, I should know the answer to this...
>
> Is there any way to allow a HERE document delimiter to be indented? Ala
>
>
> if ( blah1 ) {
> while ( blah2 ) {
> unless ( blah3 ) {
> $something = <<EOM
> Here's my text
> ain't it fun
> heeha
> EOM
> }
> }
> }
>
>
> Instead of having EOM at position 0 on the line?
>
>
>
>
>
>
> --
> Brian Hatch Smith & Wesson:
> Systems and The original
> Security Engineer Point and Click
> http://www.ifokr.org/bri/ device.
>
> Every message PGP signed
--
-Tim
*------------------------------------------------------------*
| Tim Maher (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX |
| CEO, JAWCAR ("Just Another White Camel Award Recipient") |
| tim at Consultix-Inc.Com TeachMeUnix.Com TeachMePerl.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
| Watch for my Book: "Minimal Perl for Shell Programmers" |
*------------------------------------------------------------*
More information about the spug-list
mailing list