Re: ANDing IP addresses

2002-12-26 Thread Ramprasad
Paul Johnson wrote: On Thu, Dec 26, 2002 at 04:39:30PM -0500, Kipp, James wrote: Happy Hollidays I want to bitwize AND 2 IP adr strings, not sure of how to pack() them to be able to AND them. before i start playing with pack,sprintf,socket,etc.. I was wondering if someone already had a way.

Re: *nix Perl -> MS SQL Server?

2002-12-26 Thread Ramprasad
you could use Msql-Mysql-modules ( only thing is it requires some source files of the database for make ) Or you could use the not-so-friendly but generic DBI look for some good examples on the web for starters look at http://www.saturn5.com/~jwb/dbi-examples.html Michael Teter w

migrating to oracle from mysql

2002-12-26 Thread Ramprasad
Hello all , I have been using mysql as a database and Mysql.pm helped me do most of the work easily. Now If my database changes to oracle ( which it probably would ) then will I have to rewrite all the code. I just looked at DBI and found them to be too much of a bother using such a modul

Error msg executing Berkeley DB

2002-12-26 Thread Aman Thind
Hi I am trying to configure the mozilla tinderbox on a unix machine. In order to execute a query , I am using the Berkeley DB and DB_File modules. I am getting the following error message : cvstest:/usr/local/lxr # perl search DB_File object version 1.806 does not match bootstrap parameter 1.80

Re: Formatting output

2002-12-26 Thread R. Joseph Newton
Hi, I'm going to take this from here, rather than go on to the full code, because I think I see the core of the problem here. The foreach just isn't going to do it for what you want, although you maight call it on one of the hashes. You don't really indicate whether there is supposed to be an

Re: Fw: HTTP Requests

2002-12-26 Thread R. Joseph Newton
HI Randal, Although not in the Perl culture, I have indeed seen a great deal of cargo cult thinking in my years, and I fully agree that such consciousness is a Very Bad Thing. On a quick skim of lwpcook, I would also tend to agree that this is a good source of first reference to those utilities

RE: Using while ( -e $file )

2002-12-26 Thread Scot
Seems like removing the quotes from TEMPFILE and SIZE did the trick. Thanks Kipp and Paul. If anyone wants the full sub leme know off-list. Scot -Original Message- From: Scot [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 4:32 PM To: Beginners Perl Subject: Using whi

Re: Resolving DNS/IP

2002-12-26 Thread dan
oo it worked, cheers :) dan "Peter Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Dan) writes: > >I need my program to resolve hosts to IP's, and vice versa. I came across > >the Net::DNS module on C

Re: Using while ( -e $file )

2002-12-26 Thread Paul Johnson
On Thu, Dec 26, 2002 at 04:31:30PM -0500, Scot wrote: > Trying to write a file monitor for temp files using a while loop. > The problem is that the file test does not seem to be re-evaulated > each loop. If I delete the file after the loop has started it > drops into the. SHRUNK test. I would

Re: ANDing IP addresses

2002-12-26 Thread Paul Johnson
On Thu, Dec 26, 2002 at 04:39:30PM -0500, Kipp, James wrote: > Happy Hollidays > > I want to bitwize AND 2 IP adr strings, not sure of how to pack() them to be > able to AND them. before i start playing with pack,sprintf,socket,etc.. I > was wondering if someone already had a way. $ perl -e 'prin

Re: Production worthy "Learning Perl" regex exercise solution?

2002-12-26 Thread Rob Dixon
Lance I'm not sure exactly what you're trying to do. I don't have a copy of the book, but it's clear that the file is prescibed to have standard scalars alone on each line with no whitespace except the line terminator. See in line. "Lance Murray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

RE: Using while ( -e $file )

2002-12-26 Thread Kipp, James
> The problem is that the file test does not seem to be re-evaulated > each loop. If I delete the file after the loop has started it > drops into the. SHRUNK test. I would think it would drop out of the > while loop. > > while ( -e $tfile ) { > $SIZE = (-s "$TEMPFILE") /1024; >

Using while ( -e $file )

2002-12-26 Thread Scot
Hi; Trying to write a file monitor for temp files using a while loop. The problem is that the file test does not seem to be re-evaulated each loop. If I delete the file after the loop has started it drops into the. SHRUNK test. I would think it would drop out of the while loop. while (

ANDing IP addresses

2002-12-26 Thread Kipp, James
Happy Hollidays I want to bitwize AND 2 IP adr strings, not sure of how to pack() them to be able to AND them. before i start playing with pack,sprintf,socket,etc.. I was wondering if someone already had a way. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

*nix Perl -> MS SQL Server?

2002-12-26 Thread Michael Teter
Hi. Does anyone have any recommendation on module(s) to use to gain full access to MS SQL Server from Perl (running on BSD or Linux)? On CPAN I see a few MS SQL Server entries, and quite a few Sybase entries. Which one(s) should I use? I need a reliable interface to the database server, includi

RE: Operations with dates

2002-12-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
If you can get the date as stated, I think you would be better off taking that date and coming up with seconds from your header and then compare against the current day - 30 days. Your test for what I assume is alphanumeric month(ie, Apr, May, etc) would not work as you expect. SO

Production worthy "Learning Perl" regex exercise solution?

2002-12-26 Thread Lance Murray
Hello: I'm trying to work through the "Learning Perl" Llama book, but I'm a bit stumped on one of the regex exercises (ch 8.6 #3). The solution at the back of the book doesn't work if you don't presume anything for input. Anyway, what the book asks is to write a regular expression that will pars

LWP and cron

2002-12-26 Thread Gregg R. Allen
I have a Perl script that uses LWP::Simple and downloads several web pages every day and saves them to my hard drive under the task manager in Windows 98. I'm trying to move it to Mac OS X. I've got it to run manually there, but when I run it under cron, it acts as if the "Use LWP::Simple" comman

Best SMS module?

2002-12-26 Thread dan
What's the best (and easiest to use) SMS module available? Any ideas? All help appreciated. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Stop sending me email

2002-12-26 Thread MW2547
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Stop sending me email

2002-12-26 Thread MW2547
Stop sending me email

Stop sending me email

2002-12-26 Thread MW2547
Stop sending me email

Operations with dates

2002-12-26 Thread Marcelo
Hi people ... I need to erase e-mails based in their dates, when a mail is one month old I need to erase it or move it to another folder ... but I don't know if I could do operations like : use Mail::Box::Manager; $mgr = Mail::Box::Manager->new; $inbox = "/var/spool/mail/marcelo"; $folder = $mgr

Re: Need help converting/sorting date field from within a Perl scrip t

2002-12-26 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wendy Stewart) writes: >Hi, > >Help!! I'm a new Perl user and have devloped my first Perl script to >extract fields from a Remedy form into a CSV file to be ftp'd elsewhere. I >need to sort each record on Modified-date before writing to my outp

RE: Formatting output

2002-12-26 Thread Bob Showalter
> -Original Message- > From: Jensen Kenneth B SrA AFPC/DPDMPQ > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 26, 2002 9:46 AM > To: '[EMAIL PROTECTED]' > Subject: Formatting output > > > Accidentally sent before I was done writing. > > I am trying to iterate through two hashes a

RE: Formatting output

2002-12-26 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
Wasn't really clear what I was trying to accomplish. Basically I am trying to iterate through 2 hashes at the same time so I can print 1 key / value pair from each hash on the same line. Repeating through each hash. Making things more complicated I am forced to use perl4 with no libraries, so I can

Formatting output

2002-12-26 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
Accidentally sent before I was done writing. I am trying to iterate through two hashes and print each key/value. In one column the key/value from one hash and another column the key/values of the other hash. So the output would look something like this Some header |header for column

Formatting output

2002-12-26 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
I am trying to iterate through two hashes and print each key/value. In one column the key/value from one hash and another column the key/values of the other hash. So the output would look something like this Some header |header for column 2 Key value key value Key