On Wednesday 17 Sep 2003 04:45 am, Cedric Villat wrote:
> Ok, sort of off topic, but I'm trying to convert a perl program to CF. I'm
> stuck on a line and have no idea what it's equivalent is in CF. The line
> is:
> push @{ $children{$line{"p1"}}}, shortname($line{"node"});
>
> I assume $children is an array, and $line is a single line of an input
The char in front of a variable tells you the 'context'.
@ means 'array', $ 'string'.
$children says to evaluate the children object as a string, which you want to
do if the array 'children' contains strings.
> file. What exactly does the $children{$line{"p1"}} mean?
Get me the string at the location of A in the children array. A is the string
at location "p1" of the line object.
--
Tom C
"Land of the free, home of the brave... you have to be brave to live there and
enjoy the freedoms"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm