Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Flat File Database & GD::Graph (REVISITED)

by busunsl (Vicar)
on Mar 18, 2002 at 08:52 UTC ( [id://152438]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Flat File Database & GD::Graph (REVISITED)
in thread Flat File Database & GD::Graph (REVISITED)

I see your problem.

Try to use arrays for $date and so on:

(untested)

while (<HANDLE>) { chomp; @temp1 = split(/\|/, $_); $domain = unpack ("A5", $temp1[17]); push @date, $temp1[1]; push @aaa_partners, $temp1[4]; push @aaa_arf, $temp1[5]; } close(HANDLE); my @data = ( \@date, \@aaa_partners, \@aaa_arf );

Replies are listed 'Best First'.
Re: Re: Re: Re: Flat File Database & GD::Graph (REVISITED)
by suggus (Sexton) on Mar 18, 2002 at 18:31 UTC
    while (<HANDLE>) { chomp; @temp1 = split(/\|/, $_); $domain = unpack ("A5", $temp1[17]); push @date, $temp1[1]; push @aaa_partners, $temp1[4]; push @aaa_arf, $temp1[5]; } close(HANDLE); my @data = ( \@date, \@aaa_partners, \@aaa_arf );

    still doesn't work. Is it because GD::Graph is really picky as to how the multidimensional arrays are formatted? Please enlighten me if anyone has had any experience working with text file databases and the GD::Graph module.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found