Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my @arr = split /\n/;
    
    print map { "|$_|\n" } @arr;
    
  2. or download this
    |This is|
    |a string|
    ...
    |and|
    ||
    |blank lines|