Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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
      well:

          &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