Help for this page

Select Code to Download


  1. or download this
        split /PATTERN/,EXPR,LIMIT
        split /PATTERN/,EXPR
        split /PATTERN/
    ...
    
                In scalar context, returns the number of fields found.
        ....
    
  2. or download this
    #!/usr/bin/perl
    use 5.014;
    # 1007352
    ...
    my @word = split "", $lines;  # $word replaced with @word
    
    say @word;
    
  3. or download this
    #!/usr/bin/perl
    use 5.014;
    # 1007352
    ...
    for $word( @word) {
        say $word;
    }