Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [carfac] Adding a variable to a HASH.

Quote Reply
Re: [carfac] Adding a variable to a HASH. In reply to
You need to dereference the $link hashref, then enclose $link and p inside a new hashref, like so:

Code:
print Links::Build::build ('detailed', { %$link, p => $p});

or you can just add "p" to the $link hashref directly:

Code:
$link->{p} = $p;

and leave the existing build code alone.

Philip
------------------
Limecat is not pleased.
Subject Author Views Date
Thread Adding a variable to a HASH. carfac 1607 Apr 8, 2005, 8:48 PM
Thread Re: [carfac] Adding a variable to a HASH.
carfac 1491 Apr 8, 2005, 8:56 PM
Thread Re: [carfac] Adding a variable to a HASH.
fuzzy logic 1491 Apr 8, 2005, 9:22 PM
Post Re: [fuzzy logic] Adding a variable to a HASH.
carfac 1501 Apr 8, 2005, 9:23 PM