Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by chromatic (983) on 2002.08.06 19:24 (#11484) Homepage Journal

    What's the point of using function prototypes if you use the sigil for calling them? (Yeah, I do think the ampersand is a very nearly an abomination.)

    • To be honest, I use both for documentation more than anything else.
      I've benefited from this use, and have yet to be bit by it, so I just
      keep on doing it...

      I've used ampersands as a sigil since I started writing perl because
      it makes it plain that we're talking about a subroutine. It also reads

          &load_data; &collate_records;
          "...and load data and collate records"

      It also allows me to have more control when doing a s///g on my own
      code. &foo is never confused with @fo