> That's pretty common. A guy in our office prefers:
>
> my $doc = "\n";
> $doc .= "\tThe various lines of text his program will print\n";
> $doc .= "\tif you call it with no arguments, which he types\n";
> $doc .= "\tin quotes and indiviually appends with the dot op\n";
> $doc .= "\n";
>
> to what I personally consider more readable, which would be:
>
> my $doc =<<END;
>
> The various lines of text his program will print
> if you call it with no arguments, which he types
> in quotes and indiviually appends with the dot op
>
> END
>
> He hates that.
> Style is definitely personal.
> Just try to think of the other guy when coding. :)
True that, but it was just a quick reply before I had to head out to work
so I wasn't going to pretty it up any :) (Didn't have time for it).
In general my coding style is a bit condensed, I grew up with Turbo Pascal
and was taught to condense everything (whether or not that was a good call
by the teacher, beats me) so I'm used to it.
I do break up things like
$blah=sprintf("%6.2f", ( ($foo/$bar) + ($baz*$bloop) ) );
(Just to take some random junk).
And that's just so I know what goes where ;)
I also use the here documents a lot when it comes to printing lots
of text, although at times I do it with a mix of regular printing
and here docs. Just depends on what's being printed :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]