in reply to finding and deleting item from an array

Hey thanks guys :) I'm trying to get it to work with the code you suggested, but I am not getting anywhere. I'm sure it's something I am doing wrong, but I am not getting any errors, and it isn't removing thumbs. I am wondering if there is a newline or some whitespace in there causing it not to match? I have tried removing anything else that might be in there but no luck, it could be because I don't know what I'm doing :)) This is what I have thus far:
@picturetemp = `ls -A $sourcepath`; print @picturetemp; @picturelist = grep{ $_ ne 'thumbs' }@picturetemp;

Replies are listed 'Best First'.
Re: Re: finding and deleting item from an array
by Zed (Initiate) on Jul 01, 2001 at 13:26 UTC
    My mistake, found I had a problem further down in the code. Thanks again :))