alekto 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 complete script.
> hostname$
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
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 th
On Tue, Apr 6, 2010 at 11:52 AM, Bob McConnell wrote:
> Is there a cleaner way to pass those variables into each test script?
I'm unfamiliar with testing practices in Perl, but I would imagine
that almost anything would be better than using environment variables
to store test values (IMO, at leas
On Tue, Apr 6, 2010 at 11:48 AM, Harry Putnam wrote:
> Shawn H Corey writes:
>
>> Yes. The greatest issue is code injection. This is especially true
>> for the abbreviated form of the two argument open:
>>
>> open my $fh, $file or die "could not open $file: $!\n";
>>
>> What if the user gave
On 6 April 2010 17:21, Rob Coops wrote:
> On Tue, Apr 6, 2010 at 5:56 PM, Harry Putnam wrote:
>> This doesn't actually have to be a paying job... I'm retired and do
>> have an income. But it would need to be a situation where I was
>> expected to produce something on a continuing basis. (Of cou
On 6 April 2010 16:52, Bob McConnell wrote:
> I have a test harness set up with a series of Selenium test scripts.
> Each script tests a specific scenario on my web site. But I have some
> scenarios that I want to test multiple times with different data entered
> each time. Currently I am using en
On Tue, Apr 6, 2010 at 5:56 PM, Harry Putnam wrote:
> [This message was inadvertently originally posted in a totally
> inappropriate group, so reposted here where it was supposed to have
> gone]
>
> Sorry that this is something of a ramble.
>
> I've been using perl for several yrs, only home scri
On 6 April 2010 16:48, Harry Putnam wrote:
> Thanks for the effort, but I'm still a bit confused. Just need to
> think it over some more maybe. Is it fair to say that the `magic'
> open is far and away the most common working case? And that the 3 arg
> open is for unusual circumstances?
No, gene
[This message was inadvertently originally posted in a totally
inappropriate group, so reposted here where it was supposed to have
gone]
Sorry that this is something of a ramble.
I've been using perl for several yrs, only home scripting on local lan
and whatever random notions of a program I hap
I have a test harness set up with a series of Selenium test scripts.
Each script tests a specific scenario on my web site. But I have some
scenarios that I want to test multiple times with different data entered
each time. Currently I am using environment parameters to pass the test
data into each
Thomas Bätzler writes:
[...]
>
> I hope this answers your question ;-)
>
> Cheers,
> Thomas
Thanks for the effort, but I'm still a bit confused. Just need to
think it over some more maybe. Is it fair to say that the `magic'
open is far and away the most common working case? And that the 3 arg
Harry Putnam wrote:
Is there something beyond style that makes those methods better than
what appears to be a simpler format
Yes. The greatest issue is code injection. This is especially true for
the abbreviated form of the two argument open:
open my $fh, $file or die "could not open $fi
John W. Krahn wrote:
Dr.Ruud:
Akhthar Parvez K:
Didn't know that Perl only deals with decimal numbers.
Wherever did you get that idea?
I think I might have mentioned that. :-)
I see that you mentioned "That is because perl only deals with decimal
numbers.". Out of context that looks
On Apr 1, 2:59 am, alexey.sal...@gmail.com (Alexey Salmin) wrote:
> On Thu, Apr 1, 2010 at 6:41 AM, Doug Cacialli wrote:
> > This reflects some of the changes suggested by Owen and as can be
> > seen, I am using strict and warnings, as suggested by others. Again,
> > this works just as I would li
On Tue, Apr 6, 2010 at 2:06 PM, Shlomi Fish wrote:
> Hi Chen,
>
> "newbie01 perl" has asked a question about Oracle and Perl 5/DBI. Would you
> be
> able to enlighten them? (Everyone should note that Chen is an Oracle DBA
> and a
> good friend of mine). Please hit reply all as the @perl.org maili
I got to know how to solve the puzzle.
We need to find the sum of elements encovered by the outer array.
And once we enter the elemnets, whenever we find an element enclosed by [x]
we shoudl take that as -x for the summation.
For example:
[ 9, [ 3, 4, [ [ 2 ] ] ] ] = 0
In this case we need to
Hi Chen,
"newbie01 perl" has asked a question about Oracle and Perl 5/DBI. Would you be
able to enlighten them? (Everyone should note that Chen is an Oracle DBA and a
good friend of mine). Please hit reply all as the @perl.org mailing lists
accept replies from non-subscribers and others may be
Hi "ubuntu",
On Monday 05 Apr 2010 18:55:39 ubuntu wrote:
> Hi
>
> I am new in perl script.
Welcome to Perl! Please see http://perl-begin.org/ for links to beginners'
resources.
Just note that you can do programming as well as scripting in Perl. See:
* http://xoa.petdance.com/Stop_saying_%22
Hi all,
We currently have OEM installed but will have to uninstall it due to
Oracle Licensing issues. Customers do not want to pay
for the performance and diagnostic pack and are actually considering
to move to SQLServer .. :-)
Anyway, am wanting to try out and install oracletool or orcaware. Bot
Hi
I am new in perl script. Does anyone know how to implement this puzzle
in perl?
[ 0 ]= 0
[ 1 ]= 1
[ 0, 1 ] = 1
[ 1, 1 ] = 2
[ 1, [ 1, 2 ] ] = -2
[ 1, 2, [ 8 ] ] = -5
[ 1, [ 2 ]
Doug Cacialli asked:
> Does anyone have any ideas how I can make the second block of code
> work? Or otherwise accomplish the task without opening the .txt file
> twice?
How large are your data files? If your available memory is much larger than
your maximum file size, you might get away with s
Harry Putnam asked:
> I see advanced users here using various styles of open().
[three argument open]
> Is there something beyond style that makes those methods better than
> what appears to be a simpler format:
[two argument open]
Allow me to quote "perldoc -f open":
The filena
23 matches
Mail list logo