RE: Problem with library paths

2006-08-21 Thread Toddy Prawiraharjo
Hello all, My bad, its all about permission after all. Found out that it necessary to give 755 permission at least for modules folder to let normal user access it. 744 won't let normal user read into it. Toddy Prawiraharjo -Original Message- From: Wijaya Edward [mailto

Re: [OT] Programming WAP pages

2006-08-21 Thread Todd W
"Mathew Snyder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Todd W wrote: >> "Mathew Snyder" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> >>> The most popular web browser found in cell phones is made by openwave. Personally, I consider the

XML::Simple help request

2006-08-21 Thread Owen Cook
I am trying to get email addresses out of a Sylpheed address book. The output of Dumper is; $VAR1 = { 'attribute-list' => [ {} ], 'first-name' => '', 'uid' => '158149473', 'cn' => 'Julie Jumper',

@EXPORT_OK and AUTOLOAD

2006-08-21 Thread JupiterHost.Net
Say a module has 3 functions foo, bar, and baz and is able to autoload do_\w+. In @EXPORT_OK can you put soem commonly used AUTOLOADed methods and have them exported? our @EXPORT_OK = qw(foo bar baz do_this do_that); or is this not possible? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Problem with library paths

2006-08-21 Thread Wijaya Edward
Hi Toddy, Couple of questions comes to mind: 1. If this is really the same perl installation, I'd wonder first how you installed it. If you used the proper installers then I'd want to know what the difference between @INC is for root/non-root. 2. Are you using the same perl version when r

Problem with library paths

2006-08-21 Thread Toddy Prawiraharjo
Hello all, I just installed a module as root, now, if i want use that module as normal users, the perl said Can't locate that module in @INC. I can use that module very fine as root. So, the question: 1. Is the path for perl's library different from root to normal users? 2. How to add path libr

Re: filecopy

2006-08-21 Thread JupiterHost.Net
Smith, Derek wrote: Why doesn't a copy work on each array element yet a glob does? I'm assuming you eman copy() from File::Copy? because copy()'s source doesn't do that I imagine. Is there documentation for copy() that seems to indicate it does? Is there a way to tell Perl to copy each e

filecopy

2006-08-21 Thread Smith, Derek
Why doesn't a copy work on each array element yet a glob does? Is there a way to tell Perl to copy each element of the array off to another file location? for (my $suffix=0; $suffix <= $#NBlogs2; $suffix++) { foreach my $logs (@NBlogs2) { copy ("$logs", "$o

Does anybody have Form2Mail.pl version 1.6 ?

2006-08-21 Thread The Virtual Wall-Jim
I've tried for a couple of days to get form2mail.pl version 1.6, (in zip format or otherwise) from Eric Wienke's site http://liquidsilver.com. It's supposed to be there for download but some part of downloading is broken. If somebody has Eric's zip file f2m1_6.zip or the source code as is, I

Re: grab first item in every file

2006-08-21 Thread John W. Krahn
Brian Volk wrote: > Hi All~ Hello, > How can I grab the first item in every file and include in the first > print statement below. The first item will always start w/ a "$" and > will not match a key in %DIR_LIST. The other items in the file (.pdf's) > may or may not match a key in %DIR_LIST It

doing an "mget" with Net::FTP

2006-08-21 Thread RICHARD FERNANDEZ
Hi folks, I have a directory full of filenames that contain spaces (a la Windows). Is there an easy way to do an mget with Net::FTP, or do I need to parse the output of $ftp->dir? The doco for Net::FTP doesn't mention mget... TIA! richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Help on chomp()

2006-08-21 Thread John W. Krahn
Mazhar wrote: > Dear Frndz, Hello, > I am writing the below code and i am facing a problem in chomp (its an > HP UX Box) > > Code > > #!/usr/bin/perl > > use strict; > use warnings; > my $file_name=$ARGV[0]; > open(FILE,"$file_name") || die "Not

Re: Help on chomp()

2006-08-21 Thread Xavier Noria
On Aug 21, 2006, at 8:51 PM, Mazhar wrote: use strict; use warnings; my $file_name=$ARGV[0]; open(FILE,"$file_name") || die "Not been Accessed" ; No quotes needed around $file_name there. @host_array=; That variable was not declared before, so that script does not run because it does not

Re: [OT] Programming WAP pages

2006-08-21 Thread Mathew Snyder
Todd W wrote: "Mathew Snyder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The most popular web browser found in cell phones is made by openwave. Personally, I consider the openwave browser the "standard" (If a phone dosen't have an openwave browser, it is not worth supporti

Help on chomp()

2006-08-21 Thread Mazhar
Dear Frndz, I am writing the below code and i am facing a problem in chomp (its an HP UX Box) Code #!/usr/bin/perl use strict; use warnings; my $file_name=$ARGV[0]; open(FILE,"$file_name") || die "Not been Accessed" ; @host_array=; close(FILE);

Re: Calculation distances

2006-08-21 Thread Todd W
""Mike Blezien"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > we are working on a small project which needs to calculate the closest > distances from an address and/or zipcode entered into a search box. It > will read from a MySQL database of companies, which store t

Re: [OT] Programming WAP pages

2006-08-21 Thread Todd W
"Mathew Snyder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >> The most popular web browser found in cell phones is made by openwave. >> Personally, I consider the openwave browser the "standard" (If a phone >> dosen't have an openwave browser, it is not worth supporting).

Re: accessing an array of hashes from another namespace

2006-08-21 Thread Tom Phoenix
On 8/21/06, Andy Greenwood <[EMAIL PROTECTED]> wrote: I have a program which I am working on which has several different packages. One of these packages, FluxDB.pm, creates an array of hashes called @users. Each element is a hash containing (among other things) username and uid (primary key from

accessing an array of hashes from another namespace

2006-08-21 Thread Andy Greenwood
I have a program which I am working on which has several different packages. One of these packages, FluxDB.pm, creates an array of hashes called @users. Each element is a hash containing (among other things) username and uid (primary key from the DB this is generated out of). In another package,

IO::All and Logfile::Rotate issues

2006-08-21 Thread Smith, Derek
Perlers, I getting this error, any help is appreciated! I tried to use other files in /tmp that I manually created but still received the same error. Look at line 76 in the Copy.pm file and wasn't sure but here it is: 58 sub copy { 59 croak("Usage: copy(FROM, TO [, BUFF

grab first item in every file

2006-08-21 Thread Brian Volk
Hi All~ How can I grab the first item in every file and include in the first print statement below. The first item will always start w/ a "$" and will not match a key in %DIR_LIST. The other items in the file (.pdf's) may or may not match a key in %DIR_LIST Filename1: O20270.TXT $432

argument for Math::MatrixReal

2006-08-21 Thread chen li
Dear all, I read a file into an array reference. I want to pass it as an argument when create the new object from Math::MatrixReal. But when I read the usage of this module I can't find how. Does anyone there give me a hand? Thanks, Li Here are the code I use: my $ref_AoA=[ [1,

Re: Designing forms/tables in CGI

2006-08-21 Thread Mike Martin
On 18/08/06, Mumia W. <[EMAIL PROTECTED]> wrote: On 08/18/2006 08:23 AM, Nath, Alok (STSD) wrote: > Hi Guys, > My question is can I create more that one form in the same page. > Yes > If yes , do I need to create separate cgi object for each form > or one object > for one page

Re: String or numbers in AoA?

2006-08-21 Thread Dr.Ruud
"Chris Charley" schreef: > my @temp=split(/\t/, $line); >^ Why mark the semicolon? (use words and not markers, or assume a non-proportional font) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: String or numbers in AoA?

2006-08-21 Thread chen li
Thanks, Li --- Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 8/20/06, chen li <[EMAIL PROTECTED]> wrote: > > > my @temp=split(/t/, $line); > > Isn't there supposed to be a backslash in there? > Hope this helps! > > --Tom Phoenix > Stonehenge Perl Training > > -- > To unsubscribe, e-ma

Re: Looking for a simple string translation module

2006-08-21 Thread Dr.Ruud
"Jeff Peng" schreef: > Turn the character string like 'abcdsfjijifjdfdf' to the integer as > '23332399343'. Use a hash? -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Programming WAP pages

2006-08-21 Thread Mathew Snyder
The most popular web browser found in cell phones is made by openwave. Personally, I consider the openwave browser the "standard" (If a phone dosen't have an openwave browser, it is not worth supporting). They have an extensive developer resource found at http://developer.openwave.com/. They

RE: Problem with large file !!

2006-08-21 Thread Nagrale, Ajay
>>perhaps in your case it's a signed 32-bit value How to confirm this !! Ajay -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 8:49 PM To: beginners@perl.org Subject: Re: Problem with large file !! neelamadhab patro wrote: > > While trying