in reply to Re^4: Remove empty element.
in thread Remove empty element.

There's a slight error in the regex,
my ($list) = $test =~ /\[ ( [^\]]+ ) \]/x;
resolves your issue here

Replies are listed 'Best First'.
Re^6: Remove empty element.
by vinoth.ree (Monsignor) on Jul 14, 2009 at 07:56 UTC

    Thanks its working fine