sub_chick has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get the return value of this subroutine to be passed directly to a scalar variable($ctrl) so that i can take its value (artist - songtitle) and match it up with a regex.use strict; sub ctrl{ system ("xmmsctrl print %T"); print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pass subroutine value to scalar
by davido (Cardinal) on Jan 12, 2006 at 02:43 UTC | |
|
Re: pass subroutine value to scalar
by dpuu (Chaplain) on Jan 12, 2006 at 02:46 UTC | |
|
Re: pass subroutine value to scalar
by sh1tn (Priest) on Jan 12, 2006 at 04:51 UTC | |
by chromatic (Archbishop) on Jan 12, 2006 at 07:40 UTC |