in reply to Looking through a file...
trymy @Names =~ grep("$Info", @Lines);
or even bettermy @Names = grep(/$Info/, @Lines);
also addingmy @Names = grep(/^$Info$/, @Lines);
should have let you known that something was wrong.use warnings; or #!/usr/bin/perl -w (pre 5.6)
|
|---|