how to upgrade Perl in RedHat from binary code

2010-12-14 Thread Nguyen Duong
Hi, I’m using Perl 5.8.5 in RedHat Enterprise 4. And current Perl version is 5.12.2 Someone show me how to upgrade from perl 5.8.5 to 5.12.22 Thanks. Nguyễn Văn Dương Faculty of Information Technology, Hanoi University E-mail: nguyenduongh...@gmail.com duon...@mails.hanu.

Re: how to upgrade Perl in RedHat from binary code

2010-12-14 Thread Brian Fraser
Download the source from http://www.cpan.org/src/README.html This link http://www.effectiveperlprogramming.com/blog/750 shows how to compile a development version of Perl. A stable version is even simpler: You leave out the -Dusedevel option. If you want to install multiple instances of Perl, but

Array Question

2010-12-14 Thread Matt
I am assigning a number of elements to an array like so: my @new = `find /home/*/new -cmin 1 -type f`; That works fine. I would also like to append more lines to that array from here: find /home/*/filed -cmin 1 -type f How do I do that without losing whats in the array already? -- To unsubsc

Re: Array Question

2010-12-14 Thread Jim Gibson
On 12/14/10 Tue Dec 14, 2010 9:18 AM, "Matt" scribbled: > I am assigning a number of elements to an array like so: > > my @new = `find /home/*/new -cmin 1 -type f`; > > That works fine. I would also like to append more lines to that array > from here: > > find /home/*/filed -cmin 1 -type f

Re: Array Question

2010-12-14 Thread John W. Krahn
Matt wrote: I am assigning a number of elements to an array like so: my @new = `find /home/*/new -cmin 1 -type f`; That works fine. I would also like to append more lines to that array from here: find /home/*/filed -cmin 1 -type f How do I do that without losing whats in the array already?

Re: web::scraper xpath

2010-12-14 Thread Rob Dixon
On 09/12/2010 18:00, shawn wilson wrote: i decided to use another module to get my data but, i'm having a bit of an issue with xpath. the data i want looks like this: name attribute name2 attribute2 possible name3 possible attribute3 more of the

how smart is sort?

2010-12-14 Thread John
I'm sorting arrays by comparing corresponding entries. Take this example: @array = ([2,1],[2],[2,1],[1]); sub my_sort { for (0...@$a) { return $x if 0!=($x=$$a[$_]<=>$$b[$_]) } } print "$$_[0],$$_[1]\n" for sort my_sort @array; First I thought I needed "for"

Re: how smart is sort?

2010-12-14 Thread John W. Krahn
John wrote: I'm sorting arrays by comparing corresponding entries. Take this example: @array = ([2,1],[2],[2,1],[1]); sub my_sort { for (0...@$a) { You have an off-by-one error because @$a is the number of elements in @$a, not the last index of @$a. That should be: for ( 0 .. $