Re: test value
- From: "Nick of course" <mol10metal@xxxxxxxxxxx>
- Date: 30 Jun 2006 07:32:04 -0700
Shane wrote:
I have some nasty code, that I want to check the value of something held in
a scalar, but there is 'no' value held in there
Data::Dumper tells me the $val = []
How do I test for that?
--
Rule 6: There is no rule 6
Blog: http://shanes.dyndns.org
if (ref $val eq 'ARRAY' && @$val == 0) { ... }
.
- References:
- test value
- From: Shane
- test value
- Prev by Date: Re: A question of speed
- Next by Date: Re: Question on printerhandling
- Previous by thread: Re: test value
- Next by thread: FAQ 4.69 How can I use a reference as a hash key?
- Index(es):