in reply to Re: Pattern match....
in thread Pattern match....

hi... its showing an error.as mentioned below, Type of arg 1 to push must be array (not private variable) . in the line , push $line, @wanted if $line =~ /^SELECT poid/;

Replies are listed 'Best First'.
Re^3: Pattern match....
by puudeli (Pilgrim) on Jan 21, 2009 at 09:54 UTC

    Ah, the push arguments are in wrong order, my memory played a trick with me. The correct order would be:

    push @wanted, $line if $line =~ /^SELECT poid/;
    --
    seek $her, $from, $everywhere if exists $true{love};