Help for this page

Select Code to Download


  1. or download this
    my $string = '12 abcdefghijklmnopqrstuvwxyz';
    my ($len) = ($string =~ /^(\d+)/;
    my ($substring) = ($string =~ /^\d+ (.{$len})/);
    print "$substring\n";
    
  2. or download this
    my ($len,$substring) = ($string =~ /^(\d+) (.{$1})/);