Hi,
Find this below example. It may be useful for you.
use strict; use warnings; use Data::Dumper; my $val = q| my @array= qw(A R N D); splice(@array,0,4,qw(B N M C)); print Dumper \@array; |; eval($val);
In reply to Re: Executing perlcode from variable
by leslie
in thread Executing perlcode from variable
by ASadon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |