Re: test value
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 30 Jun 2006 12:15:40 GMT
Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> wrote:
John Bokma wrote:
Shane <shane@xxxxxxxxxxxxxxxxxxxx> 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 = []
$val contains a reference to an empty array, like:
my @array = ();
my $val = \@array;
if (@$val == 0) {
print "Empty\n";
}
@$val or print "Empty\n";
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
.
- References:
- test value
- From: Shane
- Re: test value
- From: John Bokma
- Re: test value
- From: Josef Moellers
- test value
- Prev by Date: Re: Cam::PDF question
- Next by Date: Re: Professional IDE for a cross-platform Perl application
- Previous by thread: Re: test value
- Next by thread: Re: test value
- Index(es):
Relevant Pages
|