Help for this page

Select Code to Download


  1. or download this
    my @contents = do { open(my $fh, "/my/text/file") or die; <$fh> };
    
  2. or download this
    my @contents = do { local *ARGV; @ARGV=('/my/text/file'); <> };