Where $input is the <STDIN>, how can I make this grep search case insensitive?my @bintext2 = grep {$_ =~ "$input"} @bintext;
Thank You!!!#!usr/bin/perl -w # nl.plx use strict; open FILE,"<$ARGV[0]"; my @foo = <FILE>; my $lineno = 1; print "Enter in search keyword: "; my $input = <STDIN>; chomp($input); my @bintext = qx(strings.exe -n 4 Page.txt); print "@bintext\n"; my @bintext2 = grep {$_ =~ "$input"} @bintext; print "@bintext2\n";
In reply to GREP case insensitivity by italiansauce88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |