If you're using that second one under Linux (under bash on Linux at least) then you're wasting a call to echo. This will work just as well:
perl -e 'system q{>file.dat}'
In reply to Re^2: Empty a text file?
by mr_mischief
in thread Empty a text file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |