in reply to pass subroutine value to scalar

In addition - you need to pass subroutine reference:
my $command = sub { qx'xmmsctrl print %T' }; $command->(); # subroutine dereference


Replies are listed 'Best First'.
Re^2: pass subroutine value to scalar
by chromatic (Archbishop) on Jan 12, 2006 at 07:40 UTC

    Why is that?