On 11/4/07, Dr.Ruud <[EMAIL PROTECTED]> wrote:
> "Tom Phoenix" schreef:
>
> >   &silly_1($fred, $barney, $betty, $wilma); # four parameters

> ANFSCD: Tom, I keep wondering why do you often write the &-sigil where
> it is not needed?

Only because I'm writing for beginners, and (I hope) an &-sigil on a
subroutine signals even to a beginner that we're calling a
user-written subroutine and not a built-in function. (That might seem
more important if the sub had a different name than the example
above.)

My programming style in this forum (or in the classroom) is somewhat
different than the way I actually write Perl code in the real world:
Here, I usually spell out foreach to distinguish that from the
three-part for loop, even though doing so makes no difference in Perl.
But when I write my own code, I type F-O-R just like everybody else.
:-)

Cheers!

--Tom Phoenix
Stonehenge Perl Training

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


Reply via email to