Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-11 Thread alekto
Hi! I did what you told me, but I just gets this error msg in return when I am trying to execute the script: Invalid data set: 0 at ./test.pl line 105, line 1. This error is referring to this line in my script: my $gd = $graph->plot($ydata) or die $graph->error; I seems like there is somethin

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-09 Thread alekto
Hi again, thank you for trying to help! I have been looking at the script once again, I could not really get your suggestion to work, but I have been doing some new changes thought. With this script I am pasting her, I manage to print the graph to a .png file, but the histogram does not show. Th

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-07 Thread alekto
Hi, Thanks for helping! The ting is that my age file only contain age values like this: 22 22 23 24 26 26 26 26 28 28 30 30, and I have no input for a second array! I want these age values to be the bars(x-values), and a want the number of times each of these are represented, to be the y-values.

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-07 Thread alekto
Hi guys! Tnx for answering! Of course it was the /misplacing of the \ that caused my error;) But after changing this error I still get an other error msg like this: Invalid data set: 1 at ./bars.pl line 90, line 1. which is referring to this line in my script: my $gd = $graph->plot(\...@array)

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-06 Thread Jins Thomas
Hi alekto, My guess Main error is due to my $gd = $graph->plot(/@array) (Line 90) Did u meant \ (bless operator) instead of / . Same is being repeated in printHistogram(/@array Also hope last } was for printHistogram subroutine was copy paste problem while emailing. Other than that this looks

RE: Perl Subroutines

2003-01-14 Thread Scott, Joshua
and voila. Thanks to everyone who posted comments. Joshua Scott Security Systems Analyst, CISSP -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 7:04 AM To: [EMAIL PROTECTED] Subject: RE: Perl Subroutines From: "Scott, Joshua&quo

RE: Perl Subroutines

2003-01-10 Thread Jenda Krynicky
From: "Scott, Joshua" <[EMAIL PROTECTED]> > Let me add a little more info regarding my question. The subroutines > are already setup and can't be modified easily. The basic task of all > the different subs is to print to STDOUT. I'd really like to be able > to call this sub from another script a

RE: Perl Subroutines

2003-01-10 Thread Dan Muey
ROTECTED] Subject: Re: Perl Subroutines "Joshua Scott" <[EMAIL PROTECTED]> wrote in message 5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32">news:5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32... > I've created a group of Perl subroutines to handle the creati

Re: Perl Subroutines

2003-01-10 Thread Bob X
"Joshua Scott" <[EMAIL PROTECTED]> wrote in message 5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32">news:5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32... > I've created a group of Perl subroutines to handle the creation and layout > of my web pages. These subs are used when browsing to my we

Re: Perl Subroutines

2003-01-09 Thread R. Joseph Newton
Hi Joshua, It looks like you will need to add some paramaters and support functions to get practical use from this sub: Sub opentbl { my ($rows, $cols) = @_ my $currentRow, $currentCol; Print ""; for (currentRow = 1; $currentRow <= $rows; $currentRow++) { for ($currentCol = 0;

RE: Perl Subroutines

2003-01-09 Thread Scott, Joshua
Wow, that was really easy! Thank you very much for your help!! Joshua Scott Security Systems Analyst, CISSP 626-568-7024 -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 5:11 PM To: [EMAIL PROTECTED] Subject: Re: Perl Subroutines Hi

Re: Perl Subroutines

2003-01-09 Thread Rob Dixon
Hi Joshua Just redirect STDOUT to the file using open: open STDOUT, "> file.htm" or die $!; opentbl(); close STDOUT; HTH, Rob "Joshua Scott" <[EMAIL PROTECTED]> wrote in message 5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32">news:5D23931127B7EB409640001B7E8A6E32014A2AFA@PASNT32.

RE: Perl Subroutines

2003-01-09 Thread Scott, Joshua
Let me add a little more info regarding my question. The subroutines are already setup and can't be modified easily. The basic task of all the different subs is to print to STDOUT. I'd really like to be able to call this sub from another script and somehow redirect the output to a file without m

Re: Perl subroutines using array & hash????

2002-02-22 Thread Jenda Krynicky
From: "Bruce Ambraal" <[EMAIL PROTECTED]> > JON MOLIN many thanks to you too..., if that's what you want to hear. > Don't have time for these question need to get myself skilled in Perl > soonest. I see ... so you don't have enough time to answer a simple question like "Is t

Re: Perl subroutines using array & hash????

2002-02-21 Thread Bruce Ambraal
JON MOLIN many thanks to you too..., if that's what you want to hear. Don't have time for these question need to get myself skilled in Perl soonest. I surpose the name [EMAIL PROTECTED] is meant for people like me SUSAN not to worry I am two weeks in the game too, worken on the above problem, l

Re: Perl subroutines using array & hash????

2002-02-21 Thread Jon Molin
is this homework? Your other posts looks very homeworkish... /jon Bruce Ambraal wrote: > > Hi > > How do you do it > Give me two different methods in subroutines, that will: > match together all of its parameters into on large list. > > Many thanks to the following people: Brett, Micheal F,