Help for this page

Select Code to Download


  1. or download this
    my $example = "stupid\texample\tfor\tyou\n";
    my ($first,$rest) = split /\t/, $example, 2;
    # sets $first == "stupid"
    # and $rest == "example\tfor\tyou\n"
    
  2. or download this
    my $example = "stupid\texample\tfor\tyou\n";
    $example =~ s/\t.*$//;