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 TeeJay (2309) on 2006.06.19 15:48 (#48278) Homepage Journal
    ..but if you chain operators you aren't checking for failure :)

    @JAPH = qw(Hacker Perl Another Just);
    print reverse @JAPH;
    • That is not necessarily true. You can easily eval the whole thing, and die with, e.g. "'Some value' illegal value for property 'bar'". Though I'm not making an argument about whether or not chaining setters is a good practice.
    • Good point!

      But it sort of sounds like an argument for design by contract.

      Oh btw, thanks to the two so far who have left a comments on my first over post! :)

    • If you are chaining methods you have to do error via exceptions.