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
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
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
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
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
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
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
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
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