in reply to Re^5: Dereferencing in blessed object
in thread Dereferencing in blessed object
I think putting subroutines at the end was a requirement of BBC Basic1 which is where my coding started...well, actually it started before that with Shape Tables on an Apple II. Two of them had been purchased by the school the year I started at grammar school - that's a long time ago!
Until very recently I always used a leading & for subroutines - I didn't realise it was optional generally a bad idea.
I think I always add parenthesis to user-defined functions so unwittingly follow that style directive.
Don’t use unnecessary parentheses for builtins and ‘honorary’ builtins
Is an 'honorary' built-in something that is very common but not part of Perl language?
Something like fetchrow_array in DBI or get in LWP::Simple.
I was surprised to see item 122 on the list...
Don’t use subroutine prototypes
Surely prototypes, in some circumstances, are extremely useful.
1 - Incidentally, the BBC Micro turns 40 this year!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Dereferencing in blessed object (Subroutine Prototype References)
by eyepopslikeamosquito (Archbishop) on Feb 27, 2021 at 23:21 UTC |