in reply to Re: "Pattern Matching", not using regex
in thread "Pattern Matching", not using regex
Here's how you read the file into an array:
If you want to chomp of newlines, add the following line:open my $fh => $file or die "Open failed: $!"; my @array = <$fh>; close $fh;
Don't reinvent the wheel. And don't code perl primitives in Perl.chomp @array;
Abigail
|
|---|