I suggest you always -- as a matter of routine habit -- order your file with functions first and mainline at the end
Whilst that makes sense, it somehow feels wrong.
Probably because I have always written code with the subroutines at the end. I recall it being a bit of a revelation when I realised that it wasn't compulsory to have them at the end!
An alternative is to leave the mainline first but put a bare block around it
That seems very sensible. It's also something that can be applied to existing code relatively easily.
In reply to Re^4: Dereferencing in blessed object
by Bod
in thread Dereferencing in blessed object
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |