Re: If you´re in the mood, help me.

2004-12-10 Thread Randy W. Sims
[EMAIL PROTECTED] wrote: Hi guys, As you know, i´m having some problems to make this thing work. I have to write a script that automatically sends a code and get the some information according to that code. I mean, this script has to automatically fill in a formfield and get the result. But I just

Re: Currency Conversions

2004-12-10 Thread Edward WIJAYA
On Fri, 10 Dec 2004 20:48:31 -0600, Mike Blezien <[EMAIL PROTECTED]> wrote: Hello, Can some recommend a good Perl Module for converting pounds, euros, and yin to US dollars. TIA, You can try searching CPAN http://search.cpan.org Just by typing "Currency Convert" you can find many. Like: http:

Currency Conversions

2004-12-10 Thread Mike Blezien
Hello, Can some recommend a good Perl Module for converting pounds, euros, and yin to US dollars. TIA, -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe

Re: [toread] Perl on Cygwin

2004-12-10 Thread Richard Scott
Yes, and perhaps not quite is the answer, as you can run into some configuration etc. issues, and of course not quite the same, but can certainly work fine, have been using it for quite a while. On Sat, 2004-12-11 at 05:53, Mandar Rahurkar wrote: > Hello, > Has anyone used perl on windows

Re: Reading uploaded files and text blocks

2004-12-10 Thread John W. Krahn
Jan Eden wrote: Jan Eden wrote on 10.12.2004: I use the following to read in lines from an uploaded file: my $fh = $q->upload('input_file'); while (<$fh>) { push @urls, $_; } It works fine when the file has UNIX or DOS linebreaks, but it fails with Macintosh linebreaks. What is the best method

Re: If you´re in the mood, help me.

2004-12-10 Thread Philipp Traeder
On Friday 10 December 2004 22:24, [EMAIL PROTECTED] wrote: > Hi guys, Hi Diogo, > > As you know, i´m having some problems to make this thing work. I have to > write a script that automatically sends a code and get the some > information according to that code. I mean, this script has to > automat

Re: Perl on Cygwin

2004-12-10 Thread Matthias Kraatz
On my home computer I only run perl through cygwin. That way I can readily export scripts to Unix, without changing paths. Works great. Have fun, -Matthias Mandar Rahurkar wrote: Hello, Has anyone used perl on windows machine through cygwin ? Is the usability same as that on linux box ? M

Perl on Cygwin

2004-12-10 Thread Mandar Rahurkar
Hello, Has anyone used perl on windows machine through cygwin ? Is the usability same as that on linux box ? Mandar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

If you´re in the mood, help me.

2004-12-10 Thread diogo . senai
Hi guys, As you know, i´m having some problems to make this thing work. I have to write a script that automatically sends a code and get the some information according to that code. I mean, this script has to automatically fill in a formfield and get the result. But I just can´t get it done. If yo

RE: array statistic (different)

2004-12-10 Thread Charles K. Clarkson
Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote: : Charles K. Clarkson [CKC], on Wednesday, December 8, 2004 at : 08:32 (-0600) wrote about: : : : What is it representative of? What is the application? : : Will there be only didgits? What is the range of values : : available. : : ok, I rewro

CPAN error with MD5?

2004-12-10 Thread KEVIN ZEMBOWER
Hope this is a good place to ask beginner CPAN questions. Seemingly just recently, I've begun getting errors like this while installing CPAN modules: www:~# perl -MCPAN -e 'install Bundle::Slash' CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://mirrors.kernel.org/pub/CPAN/authors/id/C

Re: looking a one liner "to return the value while clearing the argument"

2004-12-10 Thread mgoland
- Original Message - From: Felix Li <[EMAIL PROTECTED]> Date: Friday, December 10, 2004 9:48 am Subject: looking a one liner "to return the value while clearing the argument" > Hi, Hello > > Is there "a one liner" that performs the equivalent of usualy a "one liner" , is something that

RE: Run Shell Script Using Perl

2004-12-10 Thread ext-Chetak.Sasalu
-Original Message- From: ext Chris Devers [mailto:[EMAIL PROTECTED] Sent: Friday, 10. December 2004 15:58 To: roime puniran Cc: Perl Beginners List Subject: Re: Run Shell Script Using Perl On Fri, 10 Dec 2004, roime puniran wrote: > I have a linux shell script used to transfer files >

looking a one liner "to return the value while clearing the argument"

2004-12-10 Thread Felix Li
Hi, Is there "a one liner" that performs the equivalent of sub ReturnAndClear { my $temp=$_[0]; $_[0]=undef; return $temp; }; TIA felix li

Re: looking a one liner "to return the value while clearing the argument"

2004-12-10 Thread Edward WIJAYA
On Fri, 10 Dec 2004 09:48:26 -0500, Felix Li <[EMAIL PROTECTED]> wrote: Is there "a one liner" that performs the equivalent of sub ReturnAndClear { my $temp=$_[0]; $_[0]=undef; return $temp; }; Why would you need that? While you just can simply use like: $val = undef; in the code?

Re: Reading uploaded files and text blocks

2004-12-10 Thread Jan Eden
Jan Eden wrote on 10.12.2004: >I am also a little confused about which line endings come with text uploaded >via >a textarea. I use: > >my $input = $q->param('input'); >$input =~ s/[\r\n]{2,}/\n/g; >my @urls = split /\n/, $input; > >to make sure I have not more than one linebreak. Th

Reading uploaded files and text blocks

2004-12-10 Thread Jan Eden
Hi, I use the following to read in lines from an uploaded file: my $fh = $q->upload('input_file'); while (<$fh>) { push @urls, $_; } It works fine when the file has UNIX or DOS linebreaks, but it fails with Macintosh linebreaks. What is the best method to read in a Macintosh file (othe

Re: Reading uploaded files and text blocks

2004-12-10 Thread Jan Eden
Jan Eden wrote on 10.12.2004: >Hi, > >I use the following to read in lines from an uploaded file: > >my $fh = $q->upload('input_file'); >while (<$fh>) { push @urls, $_; } > >It works fine when the file has UNIX or DOS linebreaks, but it fails >with Macintosh linebreaks. What is the best me

Re: Run Shell Script Using Perl

2004-12-10 Thread Chris Devers
On Fri, 10 Dec 2004, roime puniran wrote: > I have a linux shell script used to transfer files > into the other machine and i need PERL running my > script.. > How can i do that?..did some one know? You need to rewrite a shell script that does file transfer in Perl? Ok, Perl can do that. How a

Re: Why the if loop does not work??

2004-12-10 Thread Jay
On Thu, 9 Dec 2004 15:01:11 -0500, Li, Aiguo (NIH/NCI) <[EMAIL PROTECTED]> wrote: [snip] > while() > { > my $mykey; > my $myvalue; > my %Hash; > my %mainhash = (); > > next unless /^SNP/; > %Hash=getkeyvalue($mykey,$myvalue); > > foreach $mykey (keys(%Hash)) >{ [snip] > #__DATA__ > #S

Re: Mod_Perl Pass Associative Arrays

2004-12-10 Thread Chris Devers
On Fri, 10 Dec 2004, James Taylor wrote: > Hi everyone, wondering if anyone knew how to pass an associative array > via POST to mod_perl. Something like: HTML forms don't really provide for complex data structures, so any solution is going to have to be cobbled together. I think your best bet

Re: confusing warnings and void values

2004-12-10 Thread RichT
On Fri, 10 Dec 2004 01:27:55 -0800, John W. Krahn <[EMAIL PROTECTED]> wrote: > RichT wrote: > > Hi all, > > Hello, > > > > > its time again for me to hassle you, i have my script mostly working, > > but iv have been bashing my head against a wall trying to fix the last > > bits... > > > > its a

Re: cpan vs. perl -MCPAN -e

2004-12-10 Thread Chris Devers
On Fri, 10 Dec 2004, Jan Eden wrote: > Is there any reason not to use it? None at all. I only steer people towards the `perl -MCPAN -e ...` version because that is very likely to work on any recentish copy of Perl. On the other hand, not all vendors seem to distrubute the `cpan` wrapper comman

html to xml (RSS)

2004-12-10 Thread Lincoln
Anybody know of a script to generate an rss feed from a regular static html document? Maybe one that would update the feed when the page is updated? Just an html page with CSS, Apache, Fedora... Or is there a tool? Thanks, Lincoln BTW great list, I'm still a lurker. -- She is not refined.

Re: confusing warnings and void values

2004-12-10 Thread RichT
On Thu, 09 Dec 2004 23:29:21 -0500, Randy W. Sims <[EMAIL PROTECTED]> wrote: > RichT wrote: > > > > Hi all, > > > > its time again for me to hassle you, i have my script mostly working, > > but iv have been bashing my head against a wall trying to fix the last > > bits... > > > > its a script for

Re: want to get the count of rows of a table from oracle database using perl script

2004-12-10 Thread Priyanka krishnaraj
Thanks a lot. Tor Hildrum <[EMAIL PROTECTED]> wrote:On Wed, 8 Dec 2004 22:49:25 -0800 (PST), Priyanka krishnaraj wrote: > Hi All > > I want to get the count of rows in paticular table of the oracle database. You want DBI and DBD::Oracle. http://www.orafaq.com/faqperl.htm Tor -- To uns

Run Shell Script Using Perl.............roime

2004-12-10 Thread roime puniran
Hi all... I have a linux shell script used to transfer files into the other machine and i need PERL running my script.. How can i do that?..did some one know? Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Run Shell Script Using Perl.............roime

2004-12-10 Thread roime puniran
Hi all... I have a shell script used to transfer files into the other machine and i need shell script runnigg my script.. How cai i do that?.. Thanks __ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.m

Re: cpan vs. perl -MCPAN -e

2004-12-10 Thread Paul Johnson
On Fri, Dec 10, 2004 at 11:03:37AM +0100, Jan Eden wrote: > I used to use > > perl -MCPAN -e "install 'Some::Module'" > > to install modules. Now I discovered the cpan tool (by chance) which allows > me to do: > > cpan Some::Module > > The manual page (date: 2003-09-12) is pretty self-explain

cpan vs. perl -MCPAN -e

2004-12-10 Thread Jan Eden
Hi, I used to use perl -MCPAN -e "install 'Some::Module'" to install modules. Now I discovered the cpan tool (by chance) which allows me to do: cpan Some::Module The manual page (date: 2003-09-12) is pretty self-explaining - but the script was never mentioned on this list. Is there any reas

Mod_Perl Pass Associative Arrays

2004-12-10 Thread James Taylor
Hi everyone, wondering if anyone knew how to pass an associative array via POST to mod_perl. Something like: then it posts to say.. example.pl my $r=Apache->request; my $req=Apache::Request->new(shift); my %stuff=$req->param('search'); That for example doesn't work, but... I'd like it to

Re: confusing warnings and void values

2004-12-10 Thread John W. Krahn
RichT wrote: Hi all, Hello, its time again for me to hassle you, i have my script mostly working, but iv have been bashing my head against a wall trying to fix the last bits... its a script for extracting data from a file and exporting it to another. Problems: 1) i keep getting the warning "Use of