So is it accurate that your datastructure looks something like this?
my @cleared = ( 'Something', {JobProfil => undef}, {JobProfil => 1}, 'Something else that should match', 'This one should not match', );
Why are there hashrefs in some elements and not in others? Possibly the first test you should be doing is checking if $x contains a reference, at each iteration. Otherwise, you'll be trying to dereference $x as a hashref when it's actually just a plain old string. This would run afoul of strict 'refs';.
Dave
In reply to Re: Loop Array - If $var is something write values until $var is something else
by davido
in thread Loop Array - If $var is something write values until $var is something else
by maikelnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |