- or download this
@params=<STDIN>;
- or download this
15:58 >perl -MData::Dump -wE "my @params = <STDIN>; dd \@params;"
1
...
["1\n", "2\n", "3\n"]
15:59 >
- or download this
%numberoftimes={};
- or download this
while(<FH>){
- or download this
open(FH, '<', $file)
or die "Cannot open file '$file' for reading, stopped";
- or download this
while(<FH>){
@lines=split("\n",$file);
for $line(@lines){
- or download this
while (my $line = <FH>) {
chomp $line;
for my $p (@params) {
... # use $line
- or download this
if (index($line,$p)){