Saved has asked for the wisdom of the Perl Monks concerning the following question:

@MATCHING = grep /$SEARCH/i, @finfo;
Works, but when I try to anchor to beginning of line it produces no output.
@MATCHING = grep /^$SEARCH/i, @finfo;
Is this not the way to anchor?

Replies are listed 'Best First'.
Re: perl grep & anchor
by Saved (Beadle) on Mar 30, 2010 at 12:16 UTC
    Sorry, please disregard. Problem was record separator