Re: Sent time in a Net::SMTP mail

2003-01-05 Thread John W. Krahn
Jenda Krynicky wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > Or, you could do it the "correct" way. :-) > > > > use POSIX 'strftime'; > > > > my $date = strftime '%a, %d %b %Y %H:%M:%S %z', localtime; > > $smtp->datasend( "Date: $date\n" ); > > I'm not sure this is the correct way. >

Re: Perl Help

2003-01-05 Thread simran
Adam, Not sure exactly what you are trying to do, but from what i gather... you don't want to say: @fieldprice > 0 as that will put the "array" fieldprice in scalar contect, and give you back the number of elements in that array... Now Assuming: $fieldprice = 14.95 You should be able to

Perl Help

2003-01-05 Thread Adam Southerland
Hi all... I have worked for about 6 hours on one bit of code and to be honest, I am bum-fuzzeled. I don't know who to ask or where to look for help.. Chat rooms seem to be of no use.. I have values - 14.95 and 28.00 and 0.00 I want this code to say, if equal 0.00 then don't display html, else di

LWP and HTTP::Cookies Trouble

2003-01-05 Thread Superkuh
I've been having a bit of trouble getting LWP and HTTP::Cookies to play nice in a little script I've been making. Basically it's just a simple get client that retrieves a series of URLs defined by 2 for loops. But to achieve it's goal the client has too both impersonate a browser (which was quite

Re: Why Perl kicks but!

2003-01-05 Thread Rob Dixon
Group, this isn't about beginners or Perl, it's about whether or not VB, Perl etc is the best language in the world and doesn't belong here. People are as protective of their favourite languages as they are of their mothers, and I don't want to read a list of list members' relatives either. Please

Re: Sent time in a Net::SMTP mail

2003-01-05 Thread Jenda Krynicky
From: "John W. Krahn" <[EMAIL PROTECTED]> > Or, you could do it the "correct" way. :-) > > use POSIX 'strftime'; > > my $date = strftime '%a, %d %b %Y %H:%M:%S %z', localtime; > $smtp->datasend( "Date: $date\n" ); I'm not sure this is the correct way. This prints Sun, 05 Jan 2003 18:42:

Re: More advanced list

2003-01-05 Thread Jenda Krynicky
From: Jerry Rocteur <[EMAIL PROTECTED]> > Thanks.. I would not unsubscribe from this list, it is great and it > has its place, there's quite a bit of advanced stuff on this list and > whilst Randal subscribes to it, I'll stay subscribed ;-)) > > I was just interested in what other Perl lists you m

How to extract a atachment from a email

2003-01-05 Thread LRMK
How to extract a atcahment from a email to save in harddrive Im using Net::POP3

RE: How to write hex values into a file

2003-01-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
If you use the following: printf "%x\n", $_; where $_ equals 3385906118 it will print C9D0D3C6 or are you needing the data to be in true binary form, then pack may be what you need. Wags ;) -Original Message- From: Alex Demmler [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 05,

Re: 3 questions about Perl

2003-01-05 Thread Paul Johnson
On Sun, Jan 05, 2003 at 09:00:03PM +0800, Gary Fung wrote: > I am the beginner of using Perl. I am facing 2 problems when I am > doing my Academic Project. My project is to build a system for > Webmining. > > 1. Can Perl 5 build a .EXE (executable) file from a program source. If you are a

Re: Clear command in perl?

2003-01-05 Thread Alex Demmler
in Beitrag [EMAIL PROTECTED] schrieb Jensen Kenneth B Sra Afpc/Dpdmpq unter [EMAIL PROTECTED] am 02.01.2003 15:25 Uhr: > Is there a perl command equivalent to: > system ("clear"); > ? > > Thanks, > Ken > > Simple write it as a system call #!/usr/bin/perl -w system("clear"); on UNIX system("cl

How to write hex values into a file

2003-01-05 Thread Alex Demmler
Hi folks! How do I write hex Values direct into a file (like a hex editor does)? I have tested some stuff with "printf" but it did not worked (as I expected or I did wrong). Example: I need to write "C9D0D3C6" as header in front of my files. Thanks a lot Alex -- To unsubscribe, e-mail: [EMAIL

3 questions about Perl

2003-01-05 Thread Gary Fung
Hi, I am the beginner of using Perl. I am facing 2 problems when I am doing my Academic Project. My project is to build a system for Webmining. 1. Can Perl 5 build a .EXE (executable) file from a program source. How? 2. Since my project Webmining include the technique of data-mining (Apriori

Re: parsing a program's output as its running (in perl)

2003-01-05 Thread Mark Price
> ahh yes, thank you. but i ran into a little problem. consider the code: > > open PIPE, "| /usr/bin/mplayer args" or die "failed to open pipe, $!" > while ( ) { > if ($condition) { > close(PIPE); > } > else{ > # process line > } > } > > it

Re: Looking for a perl benchmark suite

2003-01-05 Thread Bob X
"Beau E. Cox" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi - > > I can't seem to find a good benchmark suite for perl. > I looked through CPAN and found benchmarking tools, but > not a ready-to-go suite. > > I don't need anything too fancy. I have compiled

Re: Why Perl kicks but!

2003-01-05 Thread Jonathan Daugherty
# > As for me I don't like visual basic so I don't use it and I don't # > post to mailing lists for it explaining that all of these 1000's of users # > are dumb to use such a language. # # do you know how many VB developers are in the US alone? Of course, numbers do say a lot; in this case, you'r

Re: More advanced list

2003-01-05 Thread zentara
On Sun, 5 Jan 2003 00:43:07 +0100, [EMAIL PROTECTED] (Jerry Rocteur) wrote: >Hi, > >I'm looking for a Perl list a bit more advanced that this one, you >know, not beginners questions.. > >I love this list and I'm learning a lot from it but I'm wondering if >there is another list with less "hello

Re: byte count

2003-01-05 Thread zentara
On Sat, 04 Jan 2003 17:32:22 -0500, [EMAIL PROTECTED] (Mark Goland) wrote: >no, I want to use one of Crypt modules which expacts to be passed strings of >n*16 bytes. How do I go about genereting such blocks ?? #this sub makes all data blocksize of 16 bytes. sub get16 { my $data = shift;

Crypt::PGPSimple ???

2003-01-05 Thread Mark Goland
I have installed pgp 6.5.8 , and am testing on winXP. I can encrypt and decrypt from cmd just fine. Have anyone used this pack, I am having a hard time Can any make something of it ?? use Crypt::PGPSimple; { open my $RD_FH,"< $ARGV[0]" || die "cant open $ARGV[0]: $!"; local @TMP=<

Re: More advanced list

2003-01-05 Thread Jerry Rocteur
Hi, Thanks.. I would not unsubscribe from this list, it is great and it has its place, there's quite a bit of advanced stuff on this list and whilst Randal subscribes to it, I'll stay subscribed ;-)) I was just interested in what other Perl lists you more advanced guys also subscribed to that'