Re: one-liner multi-line regex problem

2005-04-25 Thread Kevin Horton
On 25-Apr-05, at 10:06 AM, Jay Savage wrote: On 4/25/05, Kevin Horton <[EMAIL PROTECTED]> wrote: I'm trying to write a perl one-liner that will edit an iCalendar format file to remove To Do items. The file contains several thousand lines, and I need to remove several multi-line b

Re: one-liner multi-line regex problem

2005-04-25 Thread Kevin Horton
On 25-Apr-05, at 10:06 AM, Jay Savage wrote: On 4/25/05, Kevin Horton <[EMAIL PROTECTED]> wrote: I'm trying to write a perl one-liner that will edit an iCalendar format file to remove To Do items. The file contains several thousand lines, and I need to remove several multi-line b

one-liner multi-line regex problem

2005-04-25 Thread Kevin Horton
. the regex doesn't seem to be matching anything. I'm also wondering whether my proposed one-liner (if it worked) would be too greedy. Would it pull out everything between the first BEGIN:VTODO and the last END:VTODO? I'd appreciate any hints. Thanks, Kevin Horton -- To unsubscribe, e-

recording hardware discrete via serial port?

2005-03-06 Thread Kevin Horton
ed. The same test was also done looking for DCD, using pin 1, and having perl look for $EventMarker->MS_RLSD_ON. Thanks in advance for any advice, Kevin Horton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Tie::File problem (or is it just me?)

2005-03-06 Thread Kevin Horton
ant to match it once? What kind of line endings does the file have? If I recall correctly, I ran into a problem where perl did not recognize classical Macintosh line endings as ending a line. It thought the whole file was one line, until I converted the line endings to Unix format. Kevin Horton

Re: Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
e how much more CPU time this option will use. If this way uses too much CPU time, I will try the method suggested by Charles Clarkson. Thanks to everyone for their assistance, Kevin Horton On 2-Feb-05, at 1:46 PM, David Van Ginneken wrote: Kevin, Would something like this work for you? Main pr

Re: Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
On 2-Feb-05, at 1:09 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Kevin Horton wrote: I'm a perl newbie working on a script to log data from a device that sends more variables than I need to log. I have a working prototype script, with the list of variables to be logged

Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
to print just the variables I want. Thanks in advance, Kevin Horton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>