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, FILE 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

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.

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

2010-04-07 Thread Thomas Bätzler
alekto alekto.antarct...@gmail.com asked: I manage to generate the array from the input file, but it seems like there is something wrong with my subroutine at the end, I have been using the examples at cpan.org as an templat for this subroutine. Following is the error msg, as well as the

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, FILE line 1. which is referring to this line in my script: my $gd =

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.

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

2010-04-06 Thread alekto
Hi, I got this scrip that is suppsed to use the use the Getopt::Std; and GD::Graph::bars; to input generate an array from a file (age). With this array, the GD::Graph::bars is going to create a subroutine printHistogram() which generates a png file based on a supplied array. The signature of

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: Making A Library of Perl Subroutines

2004-01-05 Thread Randal L. Schwartz
R == R Huber [EMAIL PROTECTED] writes: R I am writing several subroutines that I want to make R available to other programs without directly including R the code in those programs. Can anyone explain how to R do this or where to go to find out how to do it. Besides the bits and pieces given

Making A Library of Perl Subroutines

2004-01-04 Thread r huber
I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone explain how to do this or where to go to find out how to do it. TIA, rj __ Do you Yahoo!? Find out what made the Top

Re: Making A Library of Perl Subroutines

2004-01-04 Thread Owen Cook
On Sun, 4 Jan 2004, r huber wrote: I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone explain how to do this or where to go to find out how to do it. Just make a file mylibrary.pl or what ever

RE: Making A Library of Perl Subroutines

2004-01-04 Thread Tim Johnson
. Of course at this level, it doesn't really make THAT much of a difference... -Original Message- From: r huber [mailto:[EMAIL PROTECTED] Sent: Sun 1/4/2004 6:18 PM To: [EMAIL PROTECTED] Cc: Subject: Making A Library of Perl Subroutines

Re: Making A Library of Perl Subroutines

2004-01-04 Thread Owen Cook
On Mon, 5 Jan 2004, Owen Cook wrote: On Sun, 4 Jan 2004, r huber wrote: I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone explain how to do this or where to go to find out how to do it.

Re: Making A Library of Perl Subroutines

2004-01-04 Thread drieux
On Jan 4, 2004, at 6:18 PM, r huber wrote: I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone explain how to do this or where to go to find out how to do it. Tim and Owen have offered the quick look

RE: Perl Subroutines

2003-01-14 Thread Scott, Joshua
. 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 [EMAIL PROTECTED] Let me

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

RE: Perl Subroutines

2003-01-10 Thread Dan Muey
] 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 creation and layout of my web pages. Th

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 and

Perl Subroutines

2003-01-09 Thread Scott, Joshua
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 website. Basically all they do when invoked is print a bunch of HTML. I've now run into the scenario where I'd like to use these same subs to print static web pages

Re: Perl Subroutines

2003-01-09 Thread Rob Dixon
@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 website. Basically all they do when invoked is print a bunch of HTML. I've now run into the scenario where I'd like to use these same subs to print static we

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 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 table rows=$rows cols=$cols; for (currentRow = 1; $currentRow = $rows; $currentRow++) {

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 this a

Perl subroutines using array hash????

2002-02-21 Thread Bruce Ambraal
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, Zentara, Stephen H, Edward) Appreciate all you asistance) Cheers Bruce -- To unsubscribe, e-mail:

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,

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,

defining connections between QPushButtons and perl-subroutines

2001-12-27 Thread fam.borgwaldt
Hi All, i'm beginning to programm dialogues with a Qt-designed graphical interface. In my test program i have designed a calculator, and i wanted him to store a value when clicking a special button. But it doesn't work. Can you help me to find my failure? the source code looks like: $qApp =

defining connections between QPushButtons and perl-subroutines

2001-12-23 Thread fam.borgwaldt
Hi All, i'm beginning to programm dialogues with a Qt-designed graphical interface. In my test program i have designed a calculator, and i wanted him to store a value when clicking a special button. But it doesn't work. Can you help me to find my failure? the source code looks like: $qApp =