referencie

Aben Siatris aben na webcom.sk
Čtvrtek Leden 6 15:02:58 MET 2005


moze mi pomoct niekto vysvetlit nasledovne?


obsah test.pl:

#!/usr/bin/perl

sub test(\%)
{
   my $reff=shift
}


my %hash=(kluc=>"hodnota");
test(%hash);
test(kluc=>1);


$ perl test.pl
Type of arg 1 to main::test must be hash (not constant item) at test.pl line 11, near "1)"
Too many arguments for main::test at test.pl line 11, near "1)"
Execution of test.pl aborted due to compilation errors.



Další informace o konferenci Perl