in reply to Re: conditional exists
in thread conditional exists

if the key exists can i get the values to an array? like
@values= exists $hash{$l} ? @{$hash{$l}}:undef; # where @values will have vor auf ab

Replies are listed 'Best First'.
Re^3: conditional exists
by jethro (Monsignor) on Jul 08, 2009 at 12:56 UTC

    Yes exactly, in my example script above @values has these values: vor auf ab

    If in doubt, just check it yourself:

    print join('|',@values),"\n"; #will print "vor|auf|ab"