[Vienna-pm] Type des Rückgabewerts

Nagy Wilhelm wilhelm.nagy at umweltbundesamt.at
Mon Apr 11 05:22:09 PDT 2005


Kollegen,

Koennt' ihr mir mal kurz helfen?

sub waswillstdenn {
    if (wantarray) {
       print "du willst ein array\n"}
    else {
       print "du willst ein scalar\n"}
    }

my $x = waswillstdenn();
my @x = waswillstdenn();
my %x = waswillstdenn();

kann ich irgenwie herausfinden ob der rückgabewert hash oder liste ist?


Lg
\^/ili




More information about the Vienna-pm mailing list