in reply to Run a variable as a line of code?
eval
{ open $fh, '<', '/path/to/file' or die $!; for my $cmd (<$fh>) { eval $cmd; } } [download]
After Compline,Zaxo