It's me again with more wacky code requests,
I have the following line:
my $html_funcs = join "<br>\n", ( $pkg_func, @{$TT->{ $pkg_func }} );
but sometimes the hash ref $TT doesn't have $pkg_func as a key and I get:
Can't use an undefined value as an ARRAY reference at
/u/njancesk/script/newscopeit.pl line 506. [runtime death]
Is there a quick way to test for eXistenZ and if true return it's array ref
content without much trouble?
All could think of is:
my $html_funcs = join "<br>\n", ( $pkg_func, ( @{$TT->{ $pkg_func }} if
exists $TT->{ $pkg_func } ) );
but that won't work... (syntax error at /u/njancesk/script/newscopeit.pl
line 506, near "} if")
I don't think Perl likes ifs in that area.
Thanx
Nikola Janceski
When choosing between two evils, I always like to try the one I've never
tried before.
-- Mae West (1892-1980)
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]