Re: localtime(time)

2001-07-24 Thread john cuson
it's not a y2k problem ... just add 1900 to it. as i recall, it's based on the way the unix systime() funtion operates. >From: "Scott F" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]>, "Eric Logeson" ><[EMAIL PROTECTED]> >Subject: Re: localtime(time) >Date: Tue, 2

RE: Regular Experssion

2001-07-24 Thread john cuson
depending on the format of the line, a simple split might be just as effective. >From: "Poulson, Shawn" <[EMAIL PROTECTED]> >To: "'FAIZ ZAHIR'" <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] >Subject: RE: Regular Experssion >Date: Tue, 24 Jul 2001 21:45:01 +0200 > >I would use: > >$email_addr = "[E

NET-SNMP::Trap Assistance Please

2001-07-24 Thread Paul Maine Jr.
David and others I am trying to use your excellent Perl module to simulate both an SNMPv1 and SNMPv2c Cisco trap for a work project. I wish to simulate the cisco "ciscoEnvMonRedundantSupplyNotification from the "CISCO-ENVMON-MIB". I have tried a number of different things with limited success

RE: Regular Experssion

2001-07-24 Thread Poulson, Shawn
I would use: $email_addr = "[EMAIL PROTECTED]" ($email_id) = $email_addr =~ /(.+)@/; -Original Message- From: FAIZ ZAHIR [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 2:43 PM To: [EMAIL PROTECTED] Subject: Regular Experssion How do i match e-mail id in the form: [EMAIL PROTEC

RE: Regular Experssion

2001-07-24 Thread Chouda, Prem
Title: RE: Regular Experssion # open the file open(FL_P,"filename"); # read the line - Assuming "," is the delimiter $line = ; ($email,$c2,$c3,$c4,$c5,$c6,$c7) = split(\,\,$line); # you can eliminate other variables $eid = split(\@\,"[EMAIL PROTECTED]"); if ($eid eq $email) {   print

RE: Regular Experssion

2001-07-24 Thread FAIZ ZAHIR
Seven columns in a file. First column is in the form of e-mail address([EMAIL PROTECTED]). Rest columns are dates, numbers etc. Need to fetch e-mail addresses >From: "Chouda, Prem" <[EMAIL PROTECTED]> >To: "'FAIZ ZAHIR'" <[EMAIL PROTECTED]> >Subject: RE: Regular Experssion >Date: Tue, 24 Jul

RE: Regular Experssion

2001-07-24 Thread Chouda, Prem
Title: RE: Regular Experssion you can split the variable like split(\@\,"[EMAIL PROTECTED]") so that you can get only the e-mail id i.e "xxx" Prem -Original Message- From: FAIZ ZAHIR [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 2:43 PM To: [EMAIL PROTECTE

Regular Experssion

2001-07-24 Thread FAIZ ZAHIR
How do i match e-mail id in the form: [EMAIL PROTECTED] from a file? thanks, faiz zahir _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ ActivePerl maili

RE: Add Sourcecode-Line number to log entry (solved)

2001-07-24 Thread Williamson, James
Stefan,   I suggest looking at the Carp Module and in particular caller (perldoc -f caller). The other thing you can do is investigate the __LINE__ macro.   Regards,   James -Original Message-From: Stefan Rusterholz [mailto:[EMAIL PROTECTED]]Sent: 24 July 2001