in reply to Probably an easy one - store command in variable.

Concerning your second update (Can't use string (",") as an ARRAY ref), It sounds like @list doesn't contain what you said it does. Could you use Data::Dumper on @list?

Replies are listed 'Best First'.
Re^2: Probably an easy one - store command in variable.
by rementis (Beadle) on Sep 15, 2005 at 17:49 UTC
    @list contains commas and brackets, which are not showing up on this web page for some reason.
    It's like '1' comma left-bracket 'item1' comma 0 right bracket and so on.
      Put your code inside of <code> tags for it to show properly. Anyway, I took that into consideration when I wrote my post. My request stands.