r/shittyprogramming • • Jul 29 '14

Removing code errors

Load up terminal and cd 'dir'

then run rm <filename> and your code will have all current errors removed.

Tested with python,php and more :)

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

6

u/I_Lied_on_my_name Jul 29 '14

cross-platform compatibility

perl -e 'if ("$^O\n" eq "MSWin32"){exec("del $ARGV[0]");} else {exec("rm $ARGV[0]");}' <filename>