On 19 Oct 2007 at 12:04, Joseph L. Casale wrote:
> My whole project got too messy so I decided to use an existing XML
> file to load in all the needed input I would require.
>
> I have the following code but fail to access to data in $workspace.
>
> my $workspace = XMLin($ARGV[0], forcearray => 1
Is there a way to compute the size of a hash?
I have a hash of hashes of hashes etc... and need to know how many items exist
in the second hash. I know they are always named as integers from 0 up. I was
hoping to get info I need out of with a loop incrementing up until etc.
Does such a method e
On Oct 19, 2:04 pm, [EMAIL PROTECTED] (Joseph L. Casale)
wrote:
> My whole project got too messy so I decided to use an existing XML file to
> load in all the needed input I would require.
>
> I have the following code but fail to access to data in $workspace.
>
> my $workspace = XMLin($ARGV[0], f
asale
Cc: beginners@perl.org
Subject: Re: Read in XML File for input
On 10/19/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote:
> print Dumper($workspace);
> print "$workspace->{TextHere}->{content}->[0]\n";
>
> The last print gives an error. The output f
way to make sure I am reading the data I want?
Send me another nudge :)
Thanks!
jlc
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix
Sent: October-19-07 12:19 PM
To: Joseph L. Casale
Cc: beginners@perl.org
Subject: Re: Read in XML File for input
On 10/19/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote:
> print Dumper($workspace);
> print "$workspace->{TextHere}->{content}->[0]\n";
>
> The last print gives an error. The output from dumper is similar to this:
>
> $VAR1 = {
> 'TextHere' => [
>{
>