develooper Front page | perl.perl5.porters | Postings from March 2011

Re: [perl #86794] Problem with Fcntl inlining subroutines (e.g.S_ISDIR S_IXUSR)

Thread Previous
From:
Eric Brine
Date:
March 24, 2011 10:42
Subject:
Re: [perl #86794] Problem with Fcntl inlining subroutines (e.g.S_ISDIR S_IXUSR)
Message ID:
AANLkTikyin3Un8Y=2rR77Unb2QdC_gOoRFcdd8m-4azW@mail.gmail.com
On Wed, Mar 23, 2011 at 4:11 PM, Rebs Guarina <rebs.guarina@gmail.com>wrote:

> In addition, some clarification as to why it was silently misbehaving would
> be great for people switching from 5.8.8.
>

Your code was misbehaving because you expected a constant to perform an
operation.

It was silent because the constant didn't do any argument validation.

- Eric

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About