"Keith C. Ivey" wrote:
>
> Rick Klement <[EMAIL PROTECTED]> wrote:
> > Vicki Brown wrote:
>
> > > if (...) {
> > > my @item_parts = split(/\n/, $item);
> > > printf ORDER ("\n%4d %-50s %3.2f %3.2f\n",
> > > $quantity, $item_parts[0], $price, $ext);
> > > } else {
> > > printf ORDER ("\n%4d %-50s %3.2f %3.2f\n",
> > > } $quantity, $item, $price, $ext);
> > >
> > > --- End Forward ---
> >
> > Begin religious indenting style rant:
> >
> > Nawww, this is not the place for that :)
> >
> > I'll just let one's choice of indenting style be it's own punishment :)
>
> I don't like cuddled elses myself, but I'm not familiar with
> any indenting style that wouldn't have the same problem.
> What did you have in mind?
I write it this way (corrected) (with tabs and TS=2 in vim):
if (...)
{
my @item_parts = split(/\n/, $item);
printf ORDER ("\n%4d %-50s %3.2f %3.2f\n",
$quantity, $item_parts[0], $price, $ext);
}
else
{
printf ORDER ("\n%4d %-50s %3.2f %3.2f\n",
$quantity, $item, $price, $ext);
}
It makes the problem obvious... :)
--
Rick Klement