[Wellington-pm] A "Mordac" gem

VPeuWzSme3ZPzsXHjF2wHz JDAfu2aDM4VF5 at perform.nospymail.com
Thu Jul 23 19:08:03 PDT 2009


What's the importance of that, when what I'm running appears not dissimilar:

sub compute_other {

    my $data_file = shift;

    if ( ! -f "$data_dir/$data_file" ) {
       print "Cannot find data file $data_file in $data_dir\n";
       return ( undef, undef, undef );
    }



On 7/23/2009 8:01 PM, Douglas Bagnall wrote:
> Lesley/Mordac wrote:
>
>    
>> sub error {
>>    }
>>      
>
>
> Following the previous discussion, my understanding is that this would
> be best rewritten:
>
>   use constant error =>  undef;
>
> so the error could be optimised away (if you used the right syntax).
>
> Douglas
> _______________________________________________
> Wellington-pm mailing list
> Wellington-pm at pm.org
> http://mail.pm.org/mailman/listinfo/wellington-pm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/wellington-pm/attachments/20090723/b16613ce/attachment.html>


More information about the Wellington-pm mailing list