Help for this page

Select Code to Download


  1. or download this
    my $n = 3;
    
    ...
    $str =~ s/^.{$n}//s;
    # was: $str =~ s/^.{$n}(.*)$/$1/s;
    print $str;
    
  2. or download this
    $str =~ s/^.{1,$n}//s;