Help for this page

Select Code to Download


  1. or download this
    use strict; use warnings;
    use Path::Tiny;
    my $filename = "foobar.txt";
    my @lines = path( $filename )->lines({ chomp => 1 });
    # done!