in reply to Re: Probably an easy one - store command in variable.
in thread Probably an easy one - store command in variable.
Are you running this under use strict;? If so, then you will have some problems with my @returnsting. Specifically, you will need to have @returnstring declared before your eval to use it later. That means when you eval "my @returnstring = ...", you will create lexical variable within the scope of the eval that will mask the @returnstring that you declared outside of the eval scope. To solve this, simply remove the my from the string that you build.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Probably an easy one - store command in variable.
by Joost (Canon) on Sep 15, 2005 at 16:58 UTC |