jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
I don't understand what is happening here. Why not:sub new { my $cname = shift; my $class = ref($cname) || $cname;
Thanks in advancesub new { my $class = shift ; .....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Objects and references
by jeffa (Bishop) on Sep 29, 2005 at 16:04 UTC | |
|
Re: Objects and references
by philcrow (Priest) on Sep 29, 2005 at 16:13 UTC | |
|
Re: Objects and references
by sauoq (Abbot) on Sep 29, 2005 at 16:15 UTC | |
|
Re: Objects and references
by dragonchild (Archbishop) on Sep 29, 2005 at 16:52 UTC | |
by jeanluca (Deacon) on Sep 30, 2005 at 20:09 UTC | |
by dragonchild (Archbishop) on Sep 30, 2005 at 20:31 UTC | |
by jeanluca (Deacon) on Sep 30, 2005 at 20:40 UTC | |
by dragonchild (Archbishop) on Oct 01, 2005 at 01:05 UTC |