$code = 'print "Hello, World!\n"'; $coderef = eval "sub { $code }"; $coderef->(); [download]
2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$ [download]
In reply to Re: Coderef from scalar. by Juerd in thread Coderef from scalar. by vaevictus