Help for this page

Select Code to Download


  1. or download this
    perl -i -wpe 'print "new text\n" if $. == 1;' file
    
  2. or download this
    perl -MTie::File -we 'tie @L, "Tie::File", "file" or die; unshift @L, 
    +"new text";'