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

Re: [MacPerl] leading space here?



On Tue, Aug 24, 1999 at 10:11:02PM +1000, Peta Adams - John Murray wrote:
} A quickie.
} 
} Indentation for readability before the terminating string in here
} documents...any problem?

Yes.  Can't be done unless you put the same indentation in the string
that you begin the here document with.  (Or you can use a regex to fix
things, as explained in the Perl Cookbook, pg 23-26.  See also the
Perl FAQ, which comes with MacPerl.)

} 
} #! perl -w
} 
} $oncemore = 1;
} $daffy = '';
} open (DUCK, '<goosewall.txt') or die ('beep beep');
} 
} while (defined ($daffy = <DUCK>){
} 	print <<"THATSALL";

        print <<"	THATSALL"

} 	Time number $oncemore
} 	Just recall terminating string must be
} 	the only thing on line. Leading tabs
} 	or spaces give problems anytime?
} <------>THATSALL
} 	$oncemore++;
} }
} 
} Cheers John
} 
} 

-- 
Paul Schinder
schinder@pobox.com

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org