Re: how to fill in forms of yahoo sign up site

2008-10-08 Thread Marcelo Sousa
Use WWW::Mechanize for fill the forms! See this example made by me: http://caos.di.uminho.pt/~dipython/renovador/renovador.pl CPAN -> WWW::Mechanize On Sun, Oct 5, 2008 at 7:49 AM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: >> ""itshardtogetone"" == "itshardtogetone" <[EMAIL PROTECTED]>

Re: Help with files

2004-02-03 Thread Marcelo
found the sollution, thanks for all the comments. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fw: Help with files

2004-02-03 Thread Marcelo
Found the way to delete duplicates on an array (using hash keys), but the other problem is: if I have linse on a file that say: username:password sometx:uilokj how do i delete the lines that don't have, say, 6 letters, followed by a : and then another 6 letters. tried this re, but it won't

Help with files

2004-02-03 Thread Marcelo
Hi everyone, need help with two things; how do you find out if a line is duplicated in a file, and delete it if so. how do you delete a line if it has more than x number of characters. Thanks a lot in advance.

Help with files

2004-02-03 Thread Marcelo
Hi everyone, need help with two things; how do you find out if a line is duplicated in a file, and delete it if so. how do you delete a line if it has more than x number of characters. Thanks a lot in advance.

Regexp help

2004-01-24 Thread Marcelo
Which regular expression would you use to remove the and from a line like this one: Here goes a webpage's title Thanks a lot in advance.

Program to write code

2004-01-21 Thread Marcelo
Hi, could anyone recommend a good program to write code, currently using notepad. Thanks a lot in advance. Marcelo

taking lines from a file

2003-01-30 Thread Marcelo
Hi everybody... How I can take lines from a file like this ... line1=A line2 line3 line1=B line2 line3 line1=A line2 line3 I want to take the followin 2 lines to the line1 when line1=A and write them to another file Thanks... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Mail::Box

2003-01-27 Thread Marcelo
Hi everyone! I'm using the Mai::Box module for reading mail from a client's inbox and then I have to validate some info in the headers and last I have to send a new mail to another client based in the info of the first messageIt works great .. but...I want to execute the script like a no

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

Re: Looking for the attachments

2002-12-17 Thread Marcelo
Gary Lindgren wrote: Here's a program I wrote that sends attachments. Gary On 12/16/02 5:53 PM, "Marcelo" <[EMAIL PROTECTED]> wrote: Hi people .. I'm using the Mail::Box modules to manipulate e-mail... but I still don't know how to obtain the names of the

Looking for the attachments

2002-12-16 Thread Marcelo
Hi people .. I'm using the Mail::Box modules to manipulate e-mail... but I still don't know how to obtain the names of the files attached to an e-mail...I need it to validate the type of file and its name...could somebody help me ? Thanks a lot .. -- To unsubscribe, e-mail: [EMAIL PROTECT

Split a text file

2002-12-13 Thread Marcelo
Hi everybody ... When I receive mail.. I can see it like a plain text file under /var/spool/mail/marcelo where all the messages are concateneted one after the other here is an example : From [EMAIL PROTECTED] Fri Dec 6 17:56:19 2002 Return-Path: <[EMAIL PROTECTED]> Received

Please help !! Locking mail before delivery

2002-12-11 Thread Marcelo
Hi people , I want to modify the headers of the mails in the /var/spool/queue before delivery, something like an antivirus scan that lock the incoming mail in the queue until the mail is scanned and then sendmail makes the delivery ...I have the script to modify the header ... then I can open t

Locking files before delivery

2002-12-11 Thread Marcelo
Hi everybody !! Thanks a lot for the references about e-mail manipulation script at perlmonks , ...It works great ... but I have another problem ... look the thing is that I need to run the script over every mail in the queue, I'm using sendmail but it generates a flat text file under /var/spo

E-mail manipulation

2002-11-28 Thread Marcelo
Hi, I have a Linux mail server using and I need a script for manipulate the headers of the incoming mail before delivery, I need to verify if the incoming e-mail have an attachment and then I have to manipulate the subject...I also have to store the values of these headers (From, To, Subject )

cisco regexp

2002-07-30 Thread Hernan Marcelo Salvarezza
Hello all, i am parsing a cisco log and i can'nt find the exact regexp,following goes the log and the script.. Jul 25 10:39:12 10.0.0.1 852: 1d23h: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 2, ConnectionId 0 0 0 0, SetupTime *10:46:49.143 GMT Thu Jul 25 2002, PeerAddress 0051122323223, PeerSubAdd

cisco log parsing

2002-05-30 Thread Hernan Marcelo Salvarezza
nd. , Recei ... -Mensaje original- De: drieux [mailto:[EMAIL PROTECTED]] Enviado el: Thursday, May 30, 2002 10:06 AM Para: Hernan Marcelo Salvarezza CC: cgi cgi-list Asunto: Re: cisco log parsing On Wednesday, May 29, 2002, at 12:29 , Hernan Marcelo Salvarezza wrote: > Hello people

RE: cisco log parsing

2002-05-30 Thread Hernan Marcelo Salvarezza
nd. , Recei ... -Mensaje original- De: drieux [mailto:[EMAIL PROTECTED]] Enviado el: Thursday, May 30, 2002 10:06 AM Para: Hernan Marcelo Salvarezza CC: cgi cgi-list Asunto: Re: cisco log parsing On Wednesday, May 29, 2002, at 12:29 , Hernan Marcelo Salvarezza wrote: > Hello people

Re: Date format again

2002-03-03 Thread Marcelo E. Magallon
t when he prints just "$year" it displays "2" instead of "2002" 2002 % 100 == 2 -- Marcelo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

end of file

2001-09-06 Thread Marcelo Aimeta
Hi! I'm working my way through sams "Teach yourself perl in 21 days" and I'm stuck. This is the code that I'm having trouble with: #!/perl/bin/ $wordcount = 0; $line = ; while ($line ne "") { chop ($line); @array = split(/ /, $line); $wordcount += @array; $line = ; } print ("Total number

End-of-File

2001-09-06 Thread Marcelo Aimeta
Hi! I'm working my way through sams "Teach yourself perl in 21 days" and I'm stuck. This is the code that I'm having trouble with: #!/perl/bin/ $wordcount = 0; $line = ; while ($line ne "") { chop ($line); @array = split(/ /, $line); $wordcount += @array;

Re: sending mail (learning perl program)

2001-07-29 Thread Marcelo Ramos
ername\@localhost" ? The | and \@ are necessary. Regards. -- ______ __ _ Marcelo Ramos | \/ __| Suse 7.1 GNU/Linux 2.2.19 | |_// Linux registered user #118109 |\ [EMAIL PROTECTED] |_|\/|_|\_\ Firm

Re: CGI/Perl Cookies

2001-07-29 Thread Marcelo Ramos
ipt? Regards. -- __ __ _____ Marcelo Ramos | \/ __| Suse 7.1 GNU/Linux 2.2.19 | |_// Linux registered user #118109 |\ [EMAIL PROTECTED] |_|\/|_|\_\ Firma la peticion

Re: Spinning Wheel!!!

2001-06-15 Thread Marcelo E. Magallon
ot;$windmill[$_ & 3]\r"; usleep(50); } does the same. for($i=0; $i <= 1; $i++) { print "$windmill[$_ & 3]\r"; usleep(50); } would be the C programmer's version. last but not least, "$_ & 3" is the same as $_ % 4 -- Marcelo

Re: testing null strings for form field values

2001-06-05 Thread Marcelo E. Magallon
> explicit in these cases: > > if ( $formdata{view_name} ) { > # etc. > } Perhaps also noteworthy is the fact that things like '$foo{bar} eq ""' make the key 'bar' spring into existance in %foo. -w tells you about it. -- Marcelo

Re: probably a simple matter but...

2001-06-04 Thread Marcelo E. Magallon
>> "M.W. Koskamp" <[EMAIL PROTECTED]> writes: > \s* will match any number of spaces ([0-9.\-]*) will match the > largest sequence of any character since there is a dot in the > expression. No. A '.' inside a character class is literal. -- M.

Re: probably a simple matter but...

2001-06-04 Thread Marcelo E. Magallon
-\d.], too. ' *' will match any ammount of spaces, including none. You might want to use ' +' instead, which matches one or more ' '. Instead of ' ', you might want to use \s, which matches other whitespace characters, too. A similar comment applies to [0-9.\-]* -- Marcelo

Re: Problem with Prematch not changing

2001-06-04 Thread Marcelo E. Magallon
t successful pattern match [...] -- Marcelo

Re: Real new.... sub not working correctly.

2001-06-04 Thread Marcelo E. Magallon
Hi, others have explained where the problem is ($foo is the scalar foo, not the function foo), but... >> Carter and Cathleen <[EMAIL PROTECTED]> writes: > Now when I spit this through I get: > > + = x Are you sure about this output? In particular about the "x" there. Since you are doi