Hi all I am attempting to implement Perl regexp expressions to take advantage of "non-greedy" matching. Unfortunately, I am not very familiar with Perl. I have...
298
Alan C.
acummingsus
May 8, 2005 1:10 am
Hi Daniel, I'm certainly no guru. But am recently leave the basics behind for intermediate and advanced Perl programming things such as: packages, namespaces,...
299
Sheri
silvermoonwo...
May 11, 2005 2:41 pm
... LOL! I've forgotten everything I'm so out of practice I've forgotten everything I knew....
300
acumming@...
acummingsus
May 11, 2005 8:24 pm
... and advanced Perl programming things such as: packages, namespaces, references, complex data structures, and perhaps now not too far away on the horizon:...
301
acummingsus
May 11, 2005 8:35 pm
... [ . . ] A guru would ... so because of ... goes through the ... for loop from ... think too) 2 ... Oops. I removed the left hand parenthesis but forgot to...
302
lm_hamilton
May 25, 2005 3:57 pm
I have a file that has hundreds of lines of several hundred right square brackets "]". I cannot control how I receive this file, but I have to clean it up. I ...
303
lm_hamilton
May 25, 2005 4:39 pm
After much Googling and further trial and error, I found it. I thought I had tried this before and it did not work, but I was mistaken. Here it is: ...
304
Alan C
acummingsus
May 26, 2005 5:24 am
perl -pe 's/\]+\n//g' < file.ddf > file.txt That did it here on Linux. Sometimes Win needs double quotes if trying it on Windows. ...
305
Larry Hamilton
lm_hamilton
May 27, 2005 1:38 am
Thanks Alan. I'll have to try this one and see how it does. Larry Hamilton Kairos Computer Solutions http://www.kairoscomputers.com/ Sales Affiliate for...
306
Alan C
acummingsus
Jul 6, 2005 7:36 pm
Ian Rastall wrote:[ . . ] ... It's not a challenge. In fact, it's rather easy. The ^!RunPerl command operates on the currently focused doc. And, if there's...
307
Ian Rastall
the_rastallian
Jul 8, 2005 12:30 am
Hi all. I'm not sure if you saw the cross-posted email from before, but I'm practising my perl skills with clips, and would like a few pointers just to get...
308
Alec Burgess
alecb3ca
Jul 8, 2005 4:29 am
Hi Ian: I haven't done very much at all with Perl and Notetab or Perl at all but that said ... If you relace the PerlNumLines script in the SampleCode library...
309
Alec Burgess
alecb3ca
Jul 8, 2005 4:43 am
Ian: followup This clip: H="direct Perl" ^!RunPerl C:\TEMP92;simpletest.pl with this file: #simpletest.pl # Begining of script print "<p>"; LOOP: while (<>) { ...
310
Alan C
acummingsus
Jul 8, 2005 6:34 am
Hi. 4 clips follow (U do not need to make a .pl file unless U want to) - I often do not use .pl file but instead do like the next 4 clips which I think is how...
311
Alan C
acummingsus
Jul 8, 2005 7:05 am
... Oop, that does a line by line basis. if U multiple lines selected then each line gets p tags. The Perl input record separator needs changed to slurp mode...
312
Ian Rastall
the_rastallian
Jul 8, 2005 7:31 am
... Hi Alec. One solution I've found is to run HTML Tidy, although that only works in HTML. I have a lot of reading tonight, after the clips you've posted. ...
313
Ian Rastall
the_rastallian
Jul 8, 2005 7:32 am
Hi Alan. Thanks for the help. I'll have to pore over it for a while. ... Ian -- Was it not a comedy, a strange and stupid matter, this repetition, this running...
314
Alec Burgess
alecb3ca
Jul 8, 2005 9:50 am
Hi Alan, Ian Alan: I tried it with both the straight substitution after putting bax the box car which got eaten by yahoo-groups. pl_ctrl_char: AFAICT: it eats...
315
acumming@...
acummingsus
Aug 6, 2005 6:28 am
On Thu, 4 Aug 2005 16:59 , H Tao <ht_ling@...> sent: [ . . ] ... (BTW, cc'd to ntb-scripts since material herein is more so on topic at ...
316
Alec Burgess
alecb3ca
Aug 7, 2005 2:34 am
Ling: Looks like you replied to me personally, rather than via the clips-list. I'm sending this reply back via the scripts list but copying you in case you are...
317
acummingsus
Aug 18, 2005 8:40 pm
(cc'd to ntb-scripts as well since it uses/needs Perl) A new file has just been uploaded to the ntb-clips files area: For now, it's there in the clips files...
318
acummingsus
Sep 2, 2005 10:55 am
Text::Autoformat been using that Perl module on Linux. Impressive. http://search.cpan.org/~dconway/Text-Autoformat- 1.13/lib/Text/Autoformat.pm There's a bit...
319
rpdooling
Sep 26, 2005 8:35 pm
Dear Alan: The text::autoformat works great, but it puts a hard return at the end of each line. Is there an option or something that can be set to avoid that?...
320
rpdooling
Sep 26, 2005 9:54 pm
Alan, ... hard paragraph breaks at the end of each line?<< Never mind. Sorry. Select All. Join lines. Duh. Thanks for the tip on autoformat.. Rick...
321
acummingsus
Sep 27, 2005 4:47 am
... (new clips are enclosed at bottom) Well, if you'd rather be lazy and have Perl do the work instead, I had also needed to add a modification anyways. So,...
322
rpdooling
Sep 27, 2005 1:47 pm
Well, I poked around and looked at the Template-Toolkit, but I can't find a win32 rendition which is where I do all of my work. If they ever port NoteTab or...
323
acummingsus
Sep 28, 2005 5:47 am
... I haven't tried the T-T module yet. But it appears it is avail for Win32 http://template-toolkit.org/download.html Win32 about half way down the page. ...
324
rpdooling
Sep 28, 2005 7:37 pm
Dear Alan: The template toolkit is WAY overkill for my needs. I looked at it last night, then uninstalled it. But I did play more with text::autoformat. Just...
325
Jason Morgan
jason@...
Sep 28, 2005 8:47 pm
Not sure if anyone is interested, but I've managed to create clips that will run Python code (which is what I mainly use). If anyone is interested, let me...
326
rpdooling
Sep 28, 2005 9:47 pm
Jason, Fire away. I'm just learning PERL and thinking about switching to Python instead because I forget everything in between immersions. I hear Python is...