jeremyh has asked for the wisdom of the Perl Monks concerning the following question:
Output is#! perl -w use strict; use subs qw( open print ) ; print 2; open(1,2) or die "$!: open() error"; sub open { CORE::print $_[0] + $_[1], "\n" } sub print { CORE::print $_[0] + 10, "\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: overriding print built-in
by m.att (Pilgrim) on Apr 12, 2006 at 01:35 UTC | |
|
Re: overriding print built-in
by grantm (Parson) on Apr 12, 2006 at 01:51 UTC | |
by Fletch (Bishop) on Apr 12, 2006 at 03:08 UTC | |
by jeremyh (Beadle) on Apr 13, 2006 at 17:12 UTC |