imcsk8 has asked for the wisdom of the Perl Monks concerning the following question:
and this is what i get:use strict; my $coderef = undef; $coderef = sub {print "SUB 1\n";}; $coderef .= sub {print "SUB 2\n";}; $coderef->();
my question is: is there a way of concatenating subroutine references to be called from one variable??Can't use string ("CODE(0x8161454)CODE(0x8161514)") as a subroutine re +f while "strict refs" in use at /home/ichavero/perlStuff/prueba_coder +ef.pl line 9.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subroutine concatenation
by phaylon (Curate) on Feb 09, 2005 at 21:29 UTC | |
by imcsk8 (Pilgrim) on Feb 09, 2005 at 21:39 UTC | |
by Anonymous Monk on Feb 09, 2005 at 21:51 UTC | |
|
Re: subroutine concatenation
by revdiablo (Prior) on Feb 09, 2005 at 21:31 UTC | |
by Fletch (Bishop) on Feb 09, 2005 at 21:53 UTC | |
by chromatic (Archbishop) on Feb 10, 2005 at 01:15 UTC | |
by Fletch (Bishop) on Feb 10, 2005 at 01:32 UTC | |
by flounder99 (Friar) on Feb 09, 2005 at 23:33 UTC | |
by revdiablo (Prior) on Feb 09, 2005 at 23:41 UTC | |
by phaylon (Curate) on Feb 09, 2005 at 22:17 UTC | |
|
Re: subroutine concatenation
by sleepingsquirrel (Chaplain) on Feb 09, 2005 at 22:06 UTC | |
|
Re: subroutine concatenation (B tricks)
by ysth (Canon) on Feb 10, 2005 at 02:36 UTC | |
|
Re: subroutine concatenation
by tmoertel (Chaplain) on Feb 11, 2005 at 01:44 UTC |