exec ('$myexe $myfile');
...
exec '""','$myexe','$myfile';
Judging by hippo's post, it seems you may already have abandoned your post. If not, you should realize that single-quotes do not interpolate scalars (update: or anything else). E.g.,:
Please see Quote and Quote-like Operators in perlop.c:\@Work\Perl\monks>perl -wMstrict -le "my $myexe = 'foo'; my $myfile = 'bar'; ;; my $string = '$myexe $myfile'; print qq{>$string<}; " >$myexe $myfile<
Give a man a fish: <%-{-{-{-<
In reply to Re: perl equiv to cmd start
by AnomalousMonk
in thread perl equiv to cmd start
by enrgyxprt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |