rlang has asked for the wisdom of the Perl Monks concerning the following question:
This returns "config('username') is my username" instead of "rlang is my username." I've tried calling it like this: &config() and this: \&config, but no cigar.print "config('username') is my username";
...but that would eliminate almost all the convenience and flexibility I'm going for. I've never tried calling a subroutine in the way I'm trying to do...is it even possible?my $username = config('username');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Subroutine Returns
by almut (Canon) on Apr 23, 2009 at 00:17 UTC | |
by ELISHEVA (Prior) on Apr 23, 2009 at 03:47 UTC | |
by ig (Vicar) on Apr 23, 2009 at 05:10 UTC | |
by perrin (Chancellor) on Apr 23, 2009 at 03:35 UTC | |
by almut (Canon) on Apr 23, 2009 at 09:53 UTC | |
by doug (Pilgrim) on Apr 23, 2009 at 17:30 UTC | |
by rlang (Novice) on Apr 23, 2009 at 00:23 UTC | |
|
Re: Using Subroutine Returns
by ikegami (Patriarch) on Apr 23, 2009 at 00:19 UTC | |
|
Re: Using Subroutine Returns
by AnomalousMonk (Archbishop) on Apr 23, 2009 at 00:51 UTC | |
|
Re: Using Subroutine Returns
by Marshall (Canon) on Apr 23, 2009 at 13:39 UTC |