print "Das ist ", cos($i); # or my $funk = 'cos($i)'; # single quotes mean $i is as-is # as opposed to being interpolated print "Das ist ", eval $funk; # or my $coderef = sub { cos(shift) }; print "Das ist ", $coderef->($i);
In reply to Re: function inline evaluation (formated *gg*)
by Fastolfe
in thread function inline evaluation (formated *gg*)
by Norbert.Lammers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |