On Sat, Jul 05, 2003 at 09:04:18PM -0700, Madhu Reddy wrote:
>
> then of recors length is more than 25, delete the
> chars after 25...basically truncate record length to
> 25
>
> and if record length is less than 25 add some spaces
> to make record length 25.
Either sprintf() or pack() woul
Hi,
I have file to load into database...
the file contains fixed length records..
basically i need to check for record lengths before
loading into database..
suppose my fixed record length is 25
i have to read each record
then of recors length is more than 25, delete the
chars after 25...basi
Hi;
> cd ~
> mkdir -p perl5mod/Mail
> save Sendmail.pm to ~/perl5mod/Mail
> export PERL5LIB=/home/unmada/perl5mod
>
> You probably want to put that last line in your .profile so it gets
> reset every time you log in.
But, If I just wanna to have ONE module in my working dir? and th
Michele Marcionelli wrote:
>
> Hello Beginners,
Hello,
> I was looking for a mailing list about REGEXP but I didn't find it. Maybe
> there is somebody here that can help me...
>
> Suppose you have the following string
>
> $str = "... John Smith (male) and Elisabeth
> Jones (female) ..."
>
On Sat, Jul 05, 2003 at 12:29:46PM -0400, Bob Showalter wrote:
> David Storrs wrote:
> > I've got a function that takes several arguments, the first of which
> > should be a scalar (specifically, a string). I'd like to have a
> > precondition to verify that the argument is, in fact, a scalar. Is
On Sat, Jul 05, 2003 at 12:25:47PM +, Pablo Fischer wrote:
> > use Mail::Sendmail;
> Load Module. Can I save it in my working dir? /home/unmada/MailP/?
Sure. You need to make sure that it will appear on @INC (the module
include path that Perl uses to find your modules). Probably the
easie
David Storrs <[EMAIL PROTECTED]> wrote:
:
: I was trying to avoid prototypes, because I wanted
: people to be able to pass the arguments in as
: function(@args), but maybe this is the way to go.
: Or maybe I just won't worry about it.
From your other posts it seems like your trying
to avoid a
Hi!
> If I understand correctly, you just want to pause between sending your
> mails so that the ISP doesn't interpret you as a spammer, right? You
> can do that like this:
Yep.. thats the point :-)
>
> use Mail::Sendmail;
Load Module. Can I save it in my working dir? /home/unmada/MailP/?
>
Hi,
the "\1" in your Regex stands for repetition of a former match which you
catched in the same Regex, but in your case there isn't one.
You didn't descibe what you really want to match, in case you want these
digits try this:
m/\.123\.222/
if you just want 3 digits with a dot in front just r
On Sat, Jul 05, 2003 at 12:43:10AM +, Pablo Fischer wrote:
> Hi all!
>
> My name is Pablo Fischer and Im a little new in Perl, however I have a project
> where I need to parse mails and send mails:
>
> I receive 2 files (contacts and arguments), I get 2000 mail adds from the
> file, so I ne
On Fri, Jul 04, 2003 at 06:03:55PM -0400, Casey West wrote:
> It was Friday, July 04, 2003 when David Storrs took the soap box, saying:
> : I've got a function that takes several arguments, the first of which
> : should be a scalar (specifically, a string). I'd like to have a
> : precondition to v
On Fri, Jul 04, 2003 at 06:02:21PM -0400, Steve Grazzini wrote:
> On Fri, Jul 04, 2003 at 02:18:40PM -0700, David Storrs wrote:
> > I've got a function that takes several arguments, the first of
> > which should be a scalar (specifically, a string). I'd like to
> > have a precondition to verify
David Storrs wrote:
> I've got a function that takes several arguments, the first of which
> should be a scalar (specifically, a string). I'd like to have a
> precondition to verify that the argument is, in fact, a scalar. Is
> there a way to do that (preferably without using modules--I'm trying
Hello,
I want to search a string for matching content,
not quite getting it.
something like:
if ($myInputLine =~ m/.\123\.222/) { ... }
this doesn't work of course, but is there a way to
do this?
TIA
Skot.
--
Skot.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
On Jul 3, George P. said:
>> while ($string =~ /pattern/g){
>> $count++;
>> if ($count > $max_count){
>> $string = substr($string,0,pos($string));
>> last;
>> }
>> }
>
>$string =~ s/((.*?$pattern){$max_count})(.*)/$1/s;
You don't need to capture the .* at the end of the regex. This
Hello Beginners,
I was looking for a mailing list about REGEXP but I didn't find it. Maybe
there is somebody here that can help me...
Suppose you have the following string
$str = "... John Smith (male) and Elisabeth
Jones (female) ..."
and that you want to find out the container of the firs
On Jul 5, Pandey Rajeev-A19514 said:
>***
> ifEntry.1.13 = 13
> ifEntry.2.13 = FastEthernet3/9
> ifEntry.3.13 = 6
> lifEntry.20.13 = administratively down
>Jul 5 03:22:33.851 cst: SNMP: Queuing packet to 10.3.0.1
>Jul 5 03:22:33.851 cst
Pandey Rajeev-A19514 wrote:
> Hi,
>
> Can anyone give me a regular expression(perhaps a one liner) ?
> Matching an expression in a single line is easy. But if I have to find it out in a
> array of scalars, it becomes tricky for me.
>
> An excerpt of my output buffer looks like this.
>
Hi,
Can you please tell me if there is any package to access mails from MS
exchange server?
Thanks
Raghu
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Can anyone give me a regular expression(perhaps a one liner) ?
Matching an expression in a single line is easy. But if I have to find it out in a
array of scalars, it becomes tricky for me.
An excerpt of my output buffer looks like this.
*
"David Storrs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've got a function that takes several arguments, the first of which
> should be a scalar (specifically, a string). I'd like to have a
> precondition to verify that the argument is, in fact, a scalar. Is
> there a way to
21 matches
Mail list logo