Help for this page

Select Code to Download


  1. or download this
    use Tie::File;
    tie @file, 'Tie::File', 'test.txt';
    s/^\s+// for @file;
    
  2. or download this
    perl -i -pe's/^\s+//' test.txt