> Hi,
> 
> this is not so much a technical as a stilistic question: How do you
indent here-quoted parts? When writing code like this:
> 
>     foreach $letter ('a'..'z') {
>         my $upletter = uc $letter;
>         print ALPHAINDEX <<"EOF";
>         <hr />
>         <p><a name="${letter}link"></a>
>         <b>$upletter</b>&nbsp;&nbsp;
>         <a href="#Navbar"><img src="../../gifs/up.gif" alt=""
border="0" width="12" height="15" /></a></p>
>         <ul>
>         EOF
> 
> The tabs get printed into the filehandle ALPHAINDEX. But not indenting
the here-quoted part makes the script less readable.
> 
> Any suggestions? Thanks!
> 

Don't use here-docs ;-)... I know, a lame cop out, but they are probably
one of the features of Perl I dislike the most.

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to