- or download this
while (<SOURCE>) {
$script = <SOURCE>;
- or download this
while (my $script = <SOURCE>) {
- or download this
@line=grep( /$script/, @sfile );
- or download this
push @lines, grep( /$script/, @sfile );
- or download this
@line = grep( /$script[0]|$script[1]|.../, @sfile );
- or download this
#!/usr/bin/perl -w
...
while (<$in_fh>) {
print $out_fh $_ if /$pat/;
}
- or download this
#!/usr/bin/perl -w
...
while (<>) {
print if /$pat/;
}
- or download this
filter 30.txt searchfile.txt > newfile.txt