Gidday All,
Im trying to pass a hash to a subroutine now. When passing with other variables do I
have to pass it as a reference like I do an array. If so how do you dereference it, if
you have to at all.
Where am I going wrong?
sub generate_navIndex{
my ( $paramPath, $paramPageName, $paramArrayIndexPages ) = @_;
my %paramArrayPicDetails = @{$paramArrayIndexPages};
my $output = "";
while( my ( $key, $value ) = each( %paramArrayIndexPages ) ){
$output .= "$key<br>";
}
return $output;
}
my $htmloutput = generate_navIndex( $outputDir, $pageName, \@arrayIndexPages );
Any help appreciated.
Thank YouColin Johnstone
Website Project Officer
Corporate Website Unit
Public Affairs Directorate
ph 9561 8643