On Wed, 2006-12-04 at 14:58 +0100, Dermot Paikkos wrote:
> On 12 Apr 2006 at 9:28, Mr. Shawn H. Corey wrote:
> 
>    if (defined($ary_users->[$i]->{$lc_surname}) ) {
> > 
> >   if( defiend( $ary_users->[$i]{lc_surname} ) &&
> > $ary_users->[$i]{lc_surname} eq 'anderson' ){
> > 
> Thanx, it works (typo defiend).
> 
> So there isn't a way to grep all the surnames out of the array of 
> hashes? 
> 
> I was hoping that there would be a way to do it without looping and 
> testing....alas.

See `perldoc -f grep`


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to