Help for this page

Select Code to Download


  1. or download this
    $/='abc';
    $_='lafbabc';
    ...
    $_='lafabcabc';
    chomp;
    print;  ##prints 'lafabc', only removes ONE $/
    
  2. or download this
    chomp $a, $b; ## this means chomp $a, but leave $b alone!
    chomp ($a, $b); ## this means chomp both