{ open $fh, '<', '/path/to/file' or die $!; for my $cmd (<$fh>) { eval $cmd; } }
After Compline,
Zaxo
In reply to Re: Run a variable as a line of code?
by Zaxo
in thread Run a variable as a line of code?
by lev36
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |