#!/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.
In reply to Re^2: grep return the entire file not the line which matches
by Gulliver
in thread grep return the entire file not the line which matches
by vikashiiitdm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |