one-liner multi-line regex problem

2005-04-25 Thread Kevin Horton
. 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-mail: [EMAIL PROTECTED] For additional commands, e-mail

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 blocks. The blocks

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 blocks. The blocks

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

2005-03-06 Thread Kevin Horton
? 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 -- To unsubscribe, e

recording hardware discrete via serial port?

2005-03-06 Thread Kevin Horton
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

Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
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

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 hard

Re: Create list of variables to be printed?

2005-02-02 Thread Kevin Horton
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 program