Re: Regex Needed

2006-03-25 Thread DZ-Jay
Unpack is even faster, for fixed-format strings. dZ. On Mar 24, 2006, at 22:19, Chris Wagner wrote: At 10:38 AM 3/24/2006 -0700, Paul Rousseau wrote: I am looking for help on a regex that examines strings such as xxxN yyy sssNNN xxxN yyyNyyy sss xxxN yyyNyyy ssN and

Re: Perl Bug (again)

2006-02-20 Thread DZ-Jay
At 09:50 AM 2/20/2006 -0500, D D Allen wrote: And then try to explain these lines -- why the first produces the output 10 and the second produces the output 30 -- which is not a Perl bug. print (5*2)*3; print \n; print 5*(2*3); print \n; As Larry Wall says in the Camel book: If it looks

Re: Unable to send wide characters via MIME::Lite

2006-02-13 Thread DZ-Jay
On Feb 13, 2006, at 01:13, Foo Ji-Haw wrote: Hi all, I'm trying to send out an email, that occasionally includes wide characters (possibly utf-8; the contents are downloaded from the Web). It looks like MIME::Lite does not like wide characters by default. Is there any way to get around it?

Re: Net::SMTP Question

2006-02-03 Thread DZ-Jay
Dirk Bremer wrote: Note the loop as shown above. What am I doing wrong? Do I need to create a new SMTP object for each message? You have to start each message transaction with the MAIL FROM SMTP command (i.e. $smtp-mail() ). You do not need to reconnect unless the server kicks you out

Re: Need some help w/ comparing dates ...

2006-01-27 Thread DZ-Jay
Meisenzahl, Christopher1 wrote: About 5 years ago I worked my way to the O'Reilly Perl for Win32 book, but haven't used it since. I have a need to write a Perl app that will check the timestamps of several known files in known locations. If the date/time of any of the files is not the current

Re: Classes as modules?

2006-01-09 Thread DZ-Jay
On Jan 7, 2006, at 03:49, Lyle Kopnicky wrote: Doesn't that just let me import the methods of the class into my own namespace, from another file? That would be weird - they're supposed to be methods of a class. They belong in the class' namespace, not mine. They won't be imported unless

Recursive classes

2005-12-08 Thread DZ-Jay
Hello: I'm fairly new to OOP in Perl, though I've been programming in Perl for about 7 years now, and I am in the process of creating my first classes. It is a recursive class, that is, one of its private members is a list of other objects of its own type (independent objects themselves,

Re: Test string conversion syntax

2005-12-05 Thread DZ-Jay
#!C:\perl\bin\perl open(TXT, sample.txt); @text = TXT; close(TXT); print Content-type:text/html\n\n html; print Text file contents:br/; foreach $line(@text) { print $line br/; } print /html; # This will loop through all the line in the file, # substitute commas with pipes on each line, #

Re: AW: split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
is omitted in the function call, then trailing null fields are stripped from the result, as the Camel book states. I also stumbled onit a few times... -- Andreas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von DZ-Jay Gesendet: Montag, 5

Re: split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
Joe Discenza wrote: DZ-Jay wrote, on Mon 05-Dec-05 07:58 : I have a problem using the split() function: When there are trailing : delimiters, without any content between them, split() skips them. For From perldoc -f split: If LIMIT is specified and positive, splits