pattern matching

2002-05-25 Thread m . godara
Hi, I have a list of the following format that I want to parse:- ((sa1 da1 sp1 dp1 p1) (sa2 da2 sp2 dp2 p2) (saN daN spN dpN pN) ) there are N entries. There are many such lists and N varies in each list. One way to parse this is to use brute force and use sth like the following for

Process zip file attached in email

2002-05-25 Thread Scott Ding
Hi, I have a perl script to process incoming email on unix box. When an email comes, the system pipes all the contents of the message to the script. I have no problem to let the script processes text based messages. But if there is a zip file as an attachment in the email, how Perl can reconize i

Converting Date to UTC format

2002-05-25 Thread Ankit Gupta
Hello, I am trying to convert date from Emails into UTC format (number of seconds elapsed since 1.1.1970). I am using this method: my $GMtime = strftime("%Y%m%d%H%M%S", gmtime($ab1)); where ab1 is the date and time derived from email like Mon, 08 Oct 2001 13:33:50 +0200 Could some one suggest

Re: Compression::Bzip2

2002-05-25 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi: Hello, >I'm trying Compression::Bzip2 to compress a file before upload it to > a server via ftp, but Compression::Bzip2::compress is doing the file > bigger, perldoc says: > > COMPRESSION FUNCTIONS >$dest = Compress::Bzip2::compress($string) > >

Re: Converting Date to UTC format

2002-05-25 Thread John W. Krahn
Ankit Gupta wrote: > > Hello, Hello, > I am trying to convert date from Emails into UTC format (number of seconds > elapsed since 1.1.1970). I am using this method: > > my $GMtime = strftime("%Y%m%d%H%M%S", gmtime($ab1)); > > where ab1 is the date and time derived from email like Mon, 08 Oct

Re: Requesting some help. Any Ideas about this code and err msg?

2002-05-25 Thread Janek Schleicher
Daniel J. Rychlik wrote at Sat, 25 May 2002 04:00:27 +0200: > Hey Guys I need some help. I have been working on this script for a week now trying >to out put my > sql data into an excel macro. I have tried everything I know how to do and I need >some direction. > Please advise. > > Heres m

complementing a scalar

2002-05-25 Thread mark
HI, Using /c in conjuction to tr/// as stated in 'perlop' complements the searchlist. Is this to mean that the scalar in $val=~tr/this//c is also scanned for any values of t,h,i or s that may be interpreted as negative values of those character representations? thanks, mark -- To unsubscrib

Re: Process zip file attached in email

2002-05-25 Thread drieux
On Friday, May 24, 2002, at 04:22 , Scott Ding wrote: > Hi, hola! > I have a perl script to process incoming email on unix > box. When an email comes, the system pipes all the > contents of the message to the script. my premise here is something on the order of the .forward trick "|

Re: complementing a scalar

2002-05-25 Thread drieux
On Saturday, May 25, 2002, at 05:22 , mark wrote: first off let me complement you on raising a question that is not often addressed both in terms of what the documentation 'asserts' and that at times it is not always clear. > $val=~tr/this//c you will forgive me the moment of levity here[1], b

Re: Crypt:: or ???

2002-05-25 Thread Elaine -HFB- Ashton
Teresa Raymond [[EMAIL PROTECTED]] quoth: *>Which module is the easiest to learn and offers the best *>encryption/decryption? There were so many that I did not feel *>capable of choosing one at CPAN. Encryption/decryption for username *>and passwords Unix passwords use what is known as DES w

Re: Lies, damn lies and statistics

2002-05-25 Thread drieux
On Friday, May 24, 2002, at 07:15 , Harry Jackson wrote: > --- Felix Geerinckx <[EMAIL PROTECTED]> wrote: >> Yearly posting statistics for perl.beginners - 2001. > > What would be really clever is if you could do the same sort of stats > for good code ;-). I would not feature in the top ten of an

Re: complementing a scalar

2002-05-25 Thread mark
> so from your illustration I would presume that > the '/c' option is there so that perl can say > > "my what a facinating transliteration." That is my question exactly /c : Hello pattern1, you look mighty nice today in all your cryptic obscurity. Actually this goes back to my initial quest

Re: complementing a scalar

2002-05-25 Thread Tagore Smith
mark wrote: > Actually this goes back to my initial question about this: > > $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; > > What is happening here exactly and what precisely does the /c do in this > statement? I've had a couple of answers that I do not understand and thus > far I've been told

Re: pattern matching

2002-05-25 Thread drieux
On Saturday, May 25, 2002, at 01:59 , [EMAIL PROTECTED] wrote: [..] > I have a list of the following format that I want to > parse:- > > ((sa1 da1 sp1 dp1 p1) (sa2 da2 sp2 dp2 p2) (saN daN > spN dpN pN) ) > > there are N entries. [..] > I was wondering if there is a single-shot method of >

Re: complementing a scalar

2002-05-25 Thread drieux
On Saturday, May 25, 2002, at 08:18 , mark wrote: [..] > Actually this goes back to my initial question about this: > > $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; [..] > So my question is (drumroll) : Do I take it to mean that /c also adds the > negative values of the given SearchPattern to the

Re: Converting Date to UTC format

2002-05-25 Thread Peter Scott
At 12:37 PM 5/25/02 +0200, Ankit Gupta wrote: > I am trying to convert date from Emails into UTC format (number of seconds >elapsed since 1.1.1970). Nitpick: that is Unix time, not UTC. See here for a definition of UTC: http://www.ghcc.msfc.nasa.gov/utc.html. -- Peter Scott Pacific Systems D

Re: Search engines and SSI

2002-05-25 Thread Peter Scott
At 10:04 PM 5/24/02 -0700, Troy May wrote: >Do search engines see/read the HTML that you include through an SSI? Or >will they ignore it? No search engine or anyone else can tell that part of a page was generated through SSI. That's why it's called "Server Side". -- Peter Scott Pacific System

Re: Search engines and SSI

2002-05-25 Thread drieux
On Friday, May 24, 2002, at 10:04 , Troy May wrote: [..] > Do search engines see/read the HTML that you include through an SSI? Or > will they ignore it? depends upon which 'search engine' you are talking about - for my webPages, I use 'vgrep' and "oh where did I put that" - which tend to requi

Re: counter spam - was Re: reading from .forward

2002-05-25 Thread Tim Musson
Hey Harry, My MUA believes you used (X-Mailer not set) to write the following on Friday, May 24, 2002 at 10:07:46 PM. >> For spam or bad address, I let my procmailrc return EXITCODE=67. >> That causes Sendmail or Postfix to bounce the message hard. HJ> Correct me if I am wrong (I have no doubt

Re: analysis and enhancement was Re: Lies, damn lies and statistics

2002-05-25 Thread Elias Assmann
On Fri, 24 May 2002, Michael Fowler wrote: > Based on empirical evidence (that is, I looked through some saved messages > in my mailbox) and RFC822 the In-Reply-To: header consists of the Message-Id > being replied to. Given that, you could trace down to the original message > through the chain

Re: complementing a scalar

2002-05-25 Thread John W. Krahn
Mark wrote: > > HI, Hello, > Using /c in conjuction to tr/// as stated in 'perlop' complements the > searchlist. Is this to mean that the scalar in $val=~tr/this//c is also > scanned for any values of t,h,i or s that may be interpreted as negative > values of those character representations?

Re: Another Bundle::DBI question

2002-05-25 Thread bob ackerman
On Saturday, May 25, 2002, at 12:00 PM, Phil Dobbin wrote: > On 25/5/02 at 11:46, [EMAIL PROTECTED] (bob ackerman) wrote: > >> >> On Saturday, May 25, 2002, at 11:41 AM, Phil Dobbin wrote: >> >>> I'm trying to install Bundle::DBI and CPAN gives me this error: >>> >>> Trying with "/usr/bin/ncft

Re: command-line commands within a Perl script

2002-05-25 Thread drieux
On Friday, May 24, 2002, at 07:42 , Torres, Jose wrote: > Here's the code I currently have to do this: > > $startDir = $ARGV[0]; > > ## Main Program ## > $dir = (); > opendir (DIR, $startDir); > foreach $dir (readdir(DIR)) { > if(($dir ne ".") && ($dir ne "..")){ > CreateChec

ActivePerl problem

2002-05-25 Thread mark
Hi, I can't seem to get ActivePerl working on my win2k machine. I checked my enviroment variables and found it not there. I edited my ev's to include Perl: C:\Perl\bin and tried C:\Perl\bin\perl.exe; I tried it both as User and as Admin. I tried perl -v to test it out in both cases and got: