in reply to grep return the entire file not the line which matches

What is this line supposed to do:

$en=EN-1000-0003-3;

Please use strict and warnings to prevent such errors. Also, please test your code to make sure it exhibits your problem before posting.

Replies are listed 'Best First'.
Re^2: grep return the entire file not the line which matches
by Gulliver (Monk) on Aug 03, 2011 at 16:36 UTC
    #!/usr/bin/perl $en=EN-1000-0003-3; print "\$en is $en\n"; --------- $en is -1006

    since -1006 is true then the grep in the OP will return all from the source array as stated.