in reply to Re^2: Looking up elements of an array in another array!
in thread Looking up elements of an array in another array!
From your last reply:
..Scan a directory and return all filenames containing the IDS
I C 7700 -A.jpg
I C 7700 -B.jpg
I C 7700 a,b -KK
Then change this line:
push @result, $_ if $_ eq $file;
to
push @result, $_ if $_=~/^\Q$file/;
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
In Section
Seekers of Perl Wisdom