session

2001-10-05 Thread jrocha
hi i'm a newbie scripting perl i'm trying to learn looking your tips and tricks. i want to know some things. i will develop a database application working with postgresql with perl cgi as front end. can somebody tellme where to find documentation about the db connection and about how to work with

Re: display on words containing the letter p

2001-10-05 Thread birgit kellner
--On Freitag, 05. Oktober 2001 15:05 -0700 "AMORE,JUAN (HP-Roseville,ex1)" <[EMAIL PROTECTED]> wrote: > > Hello Anyone! > I have the below script but it doesn't match just the words containing the > letter p. > Enstead I get "And then Joppy had a puppy named soapy" > > Is there a way to modify t

Re: modules

2001-10-05 Thread Elaine -HFB- Ashton
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth: *>On Fri, 5 Oct 2001, TS wrote: *> *>> I use perl 5.005_03. *>> how do I find out what modules are installed ? *> *>$perl -MCPAN -e autobundle *>This will first search for all installed module. Then it will search the *>cpan archive for updates... *>Per

Re: working on site/scripts offline

2001-10-05 Thread Brett W. McCoy
On Fri, 5 Oct 2001, birgit kellner wrote: > Until now, the site was not officially online, which meant that all editing > could be done directly on the original files on the server. > Now it's public, which of course means I should perform all editing > operations offline - I'm pondering over wha

Mail Script

2001-10-05 Thread Alias Alias
Hi, I'm trying to write a program that will delete old mail off the server. Here is what I have so far: #!/usr/bin/perl -w sub readdata { open (MAIL, "/home/test17/test17-mail/test17") || die "Cannot open ssh17: $!"; my(@ML)=; chomp @ML; close(MAIL); return(@ML); } sub writedata { my (@ML)=@

Low performance of a Perl program

2001-10-05 Thread Rogério Brito
Dear People, I am studying some topics on Bioinformatics and since I read a lot about Perl being employed in the area, I tried programming a very basic algorithm with it, the pair-wise sequence alignment algorithm. The problem is that while the ve

display on words containing the letter p

2001-10-05 Thread AMORE,JUAN (HP-Roseville,ex1)
Hello Anyone! I have the below script but it doesn't match just the words containing the letter p. Enstead I get "And then Joppy had a puppy named soapy" Is there a way to modify this script a bit for out put to say; "Joppy puppy soapy" Many Thanks! while (<>){ print if (m/p/); } Juan Amor

working on site/scripts offline

2001-10-05 Thread birgit kellner
I have a website on a UNIX server which includes static pages and pages generated dynamically, with perl scripts pulling content from flatfile databases. Until now, the site was not officially online, which meant that all editing could be done directly on the original files on the server. Now

RE: system("rm") problem

2001-10-05 Thread Schooley, Chris
I wrote a script a few months ago that did what you are trying... system("rm", "$imagepath/$filename"); ... but this is not the best solution, I was just faking it because I did not know better - I would use follow Bret's advice instead - it's the "Real McCoy". ;) - sorry -Original Messag

snmpset works, but net::snmp syntax does not.

2001-10-05 Thread charles
I have a peculiar problem coming up with a command i am issueing through net::snmp When I issue the following command using snmpset from a unix shell, the remote host responds correctly: snmpset -c private router .1.3.6.1.4.1.9.9.96.1.1.1.1.14.667 i 4 however, the same command issued through a

exists

2001-10-05 Thread F.H
Hi, can someone give me an example on how to use 'if exists' to compare 2 hashes. Thanks I.S __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! ht

Matching a String From The Bottom Of A File

2001-10-05 Thread Ken Hammer
Hi All, I have essentially 2 questions. I am looking for a more efficient way to match a particular string starting at the bottom of an application log file. According to the Perl Cookbook "Reading a File Backwards by Line or Paragraph", (8.4), you need to read all the lines into an array in

Re: Perl and DBI what is needed..

2001-10-05 Thread R Talbot
Michael Fowler wrote: > On Tue, Oct 02, 2001 at 10:10:35PM -0400, R Talbot wrote: > > When I ran ./configure on PostgreSQL 7.1.2 I did so --with-perl but make > > reported It could not install because Perl libraries were not shared.. I > > assume it wanted me to have the Perl static installed and

Re: Env for Cmds run in backticks

2001-10-05 Thread Luke Bakken
He wants to affect the environment of the process he's calling. Try this: $frazzle = 'exported string'; $ENV{'FRAZZLE'} = $frazzle; $output = `ksh -c \'print \$FRAZZLE\'`; print $output; On Thu, 4 Oct 2001, Brett W. McCoy wrote: > On Thu, 4 Oct 2001, Kingsbury, Michael wrote: > > > Is there

RE: Graphs

2001-10-05 Thread Jade E. Deane
I have a rather simple use of GD::Graph plotting weather variables. Take a look at the code for examples. http://vista.riven.net/~moose/fumblings/weather/wfetch_query.pl Regards, Jade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 11

RE: Graphs

2001-10-05 Thread RArul
Use GD module GD::Graph, GD::Graph3d modules are available at CPAN and Activestate. -Original Message- From: James Ferree [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:35 PM To: [EMAIL PROTECTED] Subject: Graphs Hi, Any good books on how to create graphs using Perl? Whi

Graphs

2001-10-05 Thread James Ferree
Hi, Any good books on how to create graphs using Perl? Which perl modules should I consider for this? TIA, Jim __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1

RE: passing array to pl/sql proced

2001-10-05 Thread RArul
To my knowledge there is no binding in Net8-DBD::Oracle-DBI that would allow you to pass Array Values to the Stored Procedure. You have to pass it as one large text stream and do your parsing in the Database. Else, do your own parsing logic in Perl and call the Proc accordingly. -- Rex -Or

passing array to pl/sql proced

2001-10-05 Thread Bharti, Mrinal
Hi Gang, Does any body know that "How to pass an array from perl to PL/SQL Procedure?" ? I will really appreciate if I can get any immediate suggestion or help. regards, mrinal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Anonymous scope ?

2001-10-05 Thread Brett W. McCoy
On Fri, 5 Oct 2001, Bill Jones wrote: > Not in this *example test* world I created for students (at least I didn't > want them too.) Recently I started teaching Perl as an Internet Programming > class (CGS2557) here at FCCJ and one of my students asked if it was possible > to get at it somehow -

Re: Anonymous scope ?

2001-10-05 Thread Bill Jones
On 10/5/01 12:50 PM, "Michael Fowler" <[EMAIL PROTECTED]> wrote: >> Also, you're not allowed to set it to 100 outside of the anonymous sub >> either. > > Sure you are, you just have to declare the variable outside of the anonymous > sub. > Not in this *example test* world I created for studen

Re: system("rm") problem

2001-10-05 Thread Brett W. McCoy
On Fri, 5 Oct 2001, Tyler Cruickshank wrote: > Hi. Im running perl via cygwin on NT. I want to remove all files *.1.txt. > > I have tried: > > 1) system("rm *.t.txt"); > > 2) $file = '*.1.txt'; > system("rm $file"); > > 3) system('rm *.1.txt'); You don't need to use the system call for tha

Re: Anonymous scope ?

2001-10-05 Thread Brett W. McCoy
On Fri, 5 Oct 2001, Bill Jones wrote: > Given - > > { > my $var = 100; > print "\$var is $var\n"; > > } > > print "But here \$var is $var\n"; > > > How can I or is there a way to get outer $var to be equal to 100 without > making $var global? Also, you're not allowed to set it to 100

system("rm") problem

2001-10-05 Thread Tyler Cruickshank
Hi. Im running perl via cygwin on NT. I want to remove all files *.1.txt. I have tried: 1) system("rm *.t.txt"); 2) $file = '*.1.txt'; system("rm $file"); 3) system('rm *.1.txt'); ...but, I cant get any of them to work. Any ideas? Thanks for your time. -tyler -- To unsubscribe, e-

Re: fork function

2001-10-05 Thread Michael Fowler
On Fri, Oct 05, 2001 at 10:56:53AM +0200, walter valenti wrote: > i want make more connection HTTP "symoultaneus" (using LWP or SOCKET, is > the same). It's "simultaneous". :) > If i make a cicle with the request, the new request has made only where the > old request is closed > (close the so

Re: Anonymous scope ?

2001-10-05 Thread Michael Fowler
On Fri, Oct 05, 2001 at 11:58:50AM -0400, Bill Jones wrote: > { > my $var = 100; > print "\$var is $var\n"; > > } > > print "But here \$var is $var\n"; > > > How can I or is there a way to get outer $var to be equal to 100 without > making $var global? It depends on what you mean

Anonymous scope ?

2001-10-05 Thread Bill Jones
Another Stew-pid question :] Given - { my $var = 100; print "\$var is $var\n"; } print "But here \$var is $var\n"; How can I or is there a way to get outer $var to be equal to 100 without making $var global? Also, you're not allowed to set it to 100 outside of the anonymous sub

Re: Where are the archives?

2001-10-05 Thread Kevin Meltzer
Hi Andrew, On Fri, Oct 05, 2001 at 04:26:40PM +0100, Mason, Andrew ([EMAIL PROTECTED]) said something similar to: > I just felt I had to reply to this... > > First of all my apologies. I would have read the FAQ if I'd known where > to find it. So perhaps my first posts out to have been where

RE: Use of XML::Simple and hashrefs

2001-10-05 Thread Crowder, Rod
Answered thesemy self, but in case it helps any one else > > Folks, > > I am using XML::Simple to let me parse a config file. I > include copies of > the code and the XML file in question. > > My question is how to get at the Project name values, in a > list or as the > keys to a hash. >

RE: Periodic Auto Start

2001-10-05 Thread Mason, Andrew
I think the 'Scheduled tasks' referred to is what I would call the Scheduler service. AT jobs can be created from the command line (probably fine if you are a Unix/Perl type person) or from the GUI using WINAT (if you are a dumb NT person like me). To use AT jobs the Scheduler service needs to

Use of XML::Simple and hashrefs

2001-10-05 Thread Crowder, Rod
Folks, I am using XML::Simple to let me parse a config file. I include copies of the code and the XML file in question. My question is how to get at the Project name values, in a list or as the keys to a hash. I have tried perldoc perlref, which has not helped me. Can anyone: a) show me how

Re: Help with regular expression.

2001-10-05 Thread Brett W. McCoy
On Fri, 5 Oct 2001, Daniel Falkenberg wrote: > List, > > I have an IP address within this regular expression that I need > extracting and stored in a variable. Could some one offer some help on > this? The line is as follows... > > inet addr:144.137.215.25 P-t-P:172.31.28.24 > Mask:2

Inserting records into database

2001-10-05 Thread Greg . Froese
I'm using Win32::ODBC and trying to insert a record into an access database. This is the error I'm getting. SQL failed. Error: [-3035] [1] [0] "[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query." and this is the code I'm using #Opening database if (!($db = new

RE: Help, callback subroutine is not getting

2001-10-05 Thread Bob Showalter
> -Original Message- > From: Timothy Lorenc [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 03, 2001 9:35 PM > To: [EMAIL PROTECTED] > Subject: Help, callback subroutine is not getting > > > Hello; > > I am programming using the following module created for Qmail to > perform mass

RE: how to tell if hash value is null vs missing

2001-10-05 Thread Bob Showalter
> -Original Message- > From: Michael Fowler [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 9:37 PM > To: Curtis Poe > Cc: '[EMAIL PROTECTED]' > Subject: Re: how to tell if hash value is null vs missing > > > On Thu, Oct 04, 2001 at 04:34:17PM -0700, Curtis Poe wrote: > > -

RE: Do's anyone know of a perl script which prints only sentence line s containing either a period "." question"?"

2001-10-05 Thread Bob Showalter
> -Original Message- > From: AMORE,JUAN (HP-Roseville,ex1) [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 7:20 PM > To: Beginners@Perl. Org (E-mail) > Cc: Juan Amore (E-mail); AMORE,JUAN (HP-Roseville,ex1) > Subject: Do's anyone know of a perl script which prints only senten

RE: Trying to search for a file and display its contents to screen!

2001-10-05 Thread Bob Showalter
> -Original Message- > From: AMORE,JUAN (HP-Roseville,ex1) [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 5:13 PM > To: Beginners@Perl. Org (E-mail) > Cc: AMORE,JUAN (HP-Roseville,ex1) > Subject: Trying to search for a file and display its contents > to screen! > > > Hell

Re: Compression

2001-10-05 Thread Rex Arul
Try Archive::Zip (to zip it into Zip format) or Compress:Zlib (GZip or deflate/inflate compression schemes). They are available from http://www.activestate.com and please use your PPM to download the same. - Original Message - From: "Zhe Hong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Compression

2001-10-05 Thread Zhe Hong
Hi to all the perl gurus and wonderful people in this list. I am on a very slow internet connection. (56kbps) My problem is I have to routinely upload a 20meg text file to my webhost. It usually takes 1 and a half hours to do so. Is there a perl module that can compress the text file to say aro

Re: modules

2001-10-05 Thread karl
On Fri, 5 Oct 2001, TS wrote: > I use perl 5.005_03. > how do I find out what modules are installed ? $perl -MCPAN -e autobundle This will first search for all installed module. Then it will search the cpan archive for updates... Perhaps you need answere a few question if this is the very first

modules

2001-10-05 Thread TS
I use perl 5.005_03. how do I find out what modules are installed ? and how do I add new modules ?(where are they available?). thanks. __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities

Re: fork function

2001-10-05 Thread walter valenti
Hi, the example can be this: i want make more connection HTTP "symoultaneus" (using LWP or SOCKET, is the same). If i make a cicle with the request, the new request has made only where the old request is closed (close the socket) I.E for(;;){ &http; } sub http{ #sub that make the re