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" }
In reply to overriding print built-in by jeremyh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |