You can’t store GLOB, CODE, FORMLINE, etc... If you can define semantics for those operations, feel free to enhance Storable so that it can deal with them. #### my $code = q( sub { my ($x, $y); doSomeStuff($x, $y); } ); my $sub = eval ($code);