Alien has asked for the wisdom of the Perl Monks concerning the following question:
module Kernel alias :old_puts :puts def puts(what) old_puts "new behaviour of puts" old_puts what end end
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl equivalent to ruby's alias
by ikegami (Patriarch) on Sep 25, 2008 at 19:56 UTC | |
|
Re: perl equivalent to ruby's alias
by JavaFan (Canon) on Sep 25, 2008 at 20:07 UTC | |
|
Re: perl equivalent to ruby's alias
by karavelov (Monk) on Sep 25, 2008 at 20:12 UTC | |
|
Re: perl equivalent to ruby's alias
by moritz (Cardinal) on Sep 25, 2008 at 21:04 UTC | |
by dragonchild (Archbishop) on Sep 26, 2008 at 03:22 UTC | |
by JadeNB (Chaplain) on Sep 28, 2008 at 18:59 UTC | |
|
Re: perl equivalent to ruby's alias
by Anonymous Monk on Sep 25, 2008 at 19:55 UTC | |
|
Re: perl equivalent to ruby's alias
by Alien (Monk) on Sep 25, 2008 at 20:17 UTC | |
by Anonymous Monk on Sep 28, 2008 at 01:48 UTC |