RE: Standalone exe's

2002-04-22 Thread Kingsbury, Michael
The question was never asked, but what type of performance difference is seen with a perl2exe type compiler? I develope scripts for Clearcase (a commercial CVS-type source revision control system) that are run when a file is checked in/out etc, and it runs per file. -mike -Original Message-

RegEx matching multiple items.

2002-04-11 Thread Kingsbury, Michael
Given text such as : - -> "SPRID12345678" "SPRID23456789" - I want to match the SPRID strings. I was trying to get them to be in $1 $2 etc, as there's almost always 1, sometimes more, sometimes none, but almost never more than 3-4. How would I match them. To t

HTML::CalendarMonth

2002-04-08 Thread Kingsbury, Michael
I want to use the HTML::CalendarMonth module, and set some of the days of the week as hyperlinks to another location. Replacing the comments with the tag doesn't work, as it seems to escape the tag. Anyone done this? -mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

ActiveState Win32 Port of Perl.

2002-02-20 Thread Kingsbury, Michael
I'm reading in a Unix-style (terminated) file to change one line. However, the output is with DOS mode Ctrl-Ms... anyone know how to prevent this? With the exception of the match, I'm pretty much doing while ( ) { print OUTPUT $_; } and getting the Ctrl-Ms... -mike -- To u

use lib question

2002-02-05 Thread Kingsbury, Michael
I want to have two different variable for use lib depending on a cmd line switch (one for the production libraries, one for development libraries). They exist in different directories. It appears that it uses the use lib at compilation time, rendering an if statement useless. Anyone have a slick

RE: Library

2002-01-30 Thread Kingsbury, Michael
You need it to return a true value to indicate it successfully loaded. Simpliest way is to have a 1; at the end of the file outside of any subs. If your library required to initialize something, then perhaps you wouldn't return a 1 if that initialization failed. -mike -Original Message-

Long Running Processes & Flushing output part way through.

2001-10-29 Thread Kingsbury, Michael
I'm running a command similar to the following: open ( LOG, "/tmp/log"); autoflush LOG 1; print LOG `/path/to/2hour/process`; close (LOG); This doesn't generate the expected results, ie, I don't get any output until the end. Any ideas on how to get the output part way through? Splitt

Gotta be a better way: File Compares

2001-10-24 Thread Kingsbury, Michael
I'm trying to avoid loading this data into arrays & foreaching each one, so I want to see if anyone has an idea for a better way to do this. Part 1. Given the output from compiling xyz, I end up with a log with warnings as such compiling xyz "a: warning" "b: warning" compiling mor

Socket Connections & TCP options associcated with them.

2001-09-24 Thread Kingsbury, Michael
Any ideas on how to set the TCP options on socket connections? setsockopts seems only to deal with the socket layer. -mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to reference env variables.

2001-08-22 Thread Kingsbury, Michael
When running a command such as : `ls -la /some/directory` there is an envirornment variable called !EXITCODE that I want to reference. I already have Use Env in place, but how do I keep perl from gagging on the bang in the variable name?? -mike -- To unsubscribe, e-mail: [EMAIL PROTECTED]