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

Re: [PATCH 1/3] get rid of huge swathes of repetitive code in POSIX.pm

Thread Previous | Thread Next
From:
ilmari
Date:
January 31, 2011 01:44
Subject:
Re: [PATCH 1/3] get rid of huge swathes of repetitive code in POSIX.pm
Message ID:
d8jipx51k7r.fsf@knuth.ping.uio.no
Aristotle Pagaltzis <pagaltzis@gmx.de> writes:

> +    if (my $how = $replacement{$func}) {
> +	croak "Unimplemented: POSIX::$func() is C-specific, stopped" if not defined $how;
> +	croak "Unimplemented: POSIX::$func() $$_" if ref $how;
> +	croak "Use method $_() instead of POSIX::$func()" if $how =~ /->/;
> +	croak "Unimplemented: POSIX::$func() is C-specific, use $_ instead";
> +    }

s/\$_/\$how/g ?

-- 
ilmari
"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen


Thread Previous | Thread Next


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