{ open $fh, '<', '/path/to/file' or die $!; for my $cmd (<$fh>) { eval $cmd; } }