You have to be careful, but it's not that bad if you use single quotes and concatenation.BEGIN { $short = '{ do_stuff ... }'; eval 'sub big { $something; '.$short.' $other_thing }'; }
In reply to Re: best way to inline code? (i.e. macro)
by educated_foo
in thread best way to inline code? (i.e. macro)
by ManFromNeptune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |