Help for this page

Select Code to Download


  1. or download this
    my $sep = q/' '/;
    $sep = shift @ARGV if @ARGV; # you get the idea
    my $line = "   one two three   \n";
    my @words = eval qq(split $sep, \$line);
    
  2. or download this
    $sep = q(/\s+/);
    $sep = q(//);
    $sep = q(/two|\s+/);
    $sep = q(m|/|);