AW: about the various styles of `open'

2010-04-06 Thread Thomas Bätzler
Harry Putnam rea...@newsguy.com 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:

AW: Working with files of different character encodings

2010-04-06 Thread Thomas Bätzler
Doug Cacialli doug.cacia...@gmail.com 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

puzzle

2010-04-06 Thread ubuntu
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

Any Oracle DBA Around ???? - Perl DBI of Oracle Enterprise Manager (OEM) Install

2010-04-06 Thread newbie01 perl
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.

Re: puzzle

2010-04-06 Thread Shlomi Fish
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: *

Re: Any Oracle DBA Around ???? - Perl DBI of Oracle Enterprise Manager (OEM) Install

2010-04-06 Thread Shlomi Fish
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

Re: puzzle

2010-04-06 Thread Harinatha Reddy M
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

Re: Any Oracle DBA Around ???? - Perl DBI of Oracle Enterprise Manager (OEM) Install

2010-04-06 Thread Rob Coops
On Tue, Apr 6, 2010 at 2:06 PM, Shlomi Fish shlo...@iglu.org.il 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

Re: Perl appears to be introducing whitespace when reading .txt files

2010-04-06 Thread hippsta
On Apr 1, 2:59 am, alexey.sal...@gmail.com (Alexey Salmin) wrote: On Thu, Apr 1, 2010 at 6:41 AM, Doug Cacialli doug.cacia...@gmail.com 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

Re: Permission mode of a directory

2010-04-06 Thread Dr.Ruud
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

Re: about the various styles of `open'

2010-04-06 Thread Shawn H Corey
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

Re: AW: about the various styles of `open'

2010-04-06 Thread Harry Putnam
Thomas Bätzler t.baetz...@bringe.com 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?

Looping in Test::Harness

2010-04-06 Thread Bob McConnell
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

about beginner perl site and developing skill

2010-04-06 Thread Harry Putnam
[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

Re: AW: about the various styles of `open'

2010-04-06 Thread Philip Potter
On 6 April 2010 16:48, Harry Putnam rea...@newsguy.com 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

Re: about beginner perl site and developing skill

2010-04-06 Thread Rob Coops
On Tue, Apr 6, 2010 at 5:56 PM, Harry Putnam rea...@newsguy.com 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,

Re: Looping in Test::Harness

2010-04-06 Thread Philip Potter
On 6 April 2010 16:52, Bob McConnell r...@cbord.com 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

Re: about beginner perl site and developing skill

2010-04-06 Thread Philip Potter
On 6 April 2010 17:21, Rob Coops rco...@gmail.com wrote: On Tue, Apr 6, 2010 at 5:56 PM, Harry Putnam rea...@newsguy.com 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

Re: AW: about the various styles of `open'

2010-04-06 Thread Brandon McCaig
On Tue, Apr 6, 2010 at 11:48 AM, Harry Putnam rea...@newsguy.com wrote: Shawn H Corey shawnhco...@gmail.com 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;

Re: Looping in Test::Harness

2010-04-06 Thread Brandon McCaig
On Tue, Apr 6, 2010 at 11:52 AM, Bob McConnell r...@cbord.com 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

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