laziness, impatience, and hubris | |
PerlMonks |
Using the bang(!) in perl system commandsby kettle (Beadle) |
on Jun 06, 2006 at 04:33 UTC ( [id://553742]=perlquestion: print w/replies, xml ) | Need Help?? |
kettle has asked for the wisdom of the Perl Monks concerning the following question:
Why is it that I am unable to successfully use the bang(!) in order to indicate that an output redirect ought to overwrite an existing file, if it encounters one? For example the command:
works fine, but an equivalent system command executed in perl: does nothing (in either of the two variations). Eliminating the bang(!) from the redirect, of course, accomplishes the desired effect, but I'm interested in knowing what's behind the apparent inconsistency. Does this have something to do with the particular flavor of linux I'm using, or is it something to do with the way that perl handles system commands or... Thanks! joe
Back to
Seekers of Perl Wisdom
|
|