Re: regexp help

2005-03-28 Thread Hendrik Maryns
Abhishek Dave schreef: Hello , i am sticking with a problem to replace all words of a file in such a = manner that the first and second word need to interchanged. some thing like ... 10 11 2 20001 so that the output file will be 11 1 20001 2 any helpful regex ??

inplace editing

2005-03-16 Thread Hendrik Maryns
ieveke- sleurt Pietje eens mee de bosjes in om er donder en bliksem mee te maken...*rr* Thanks for any help, H. -- Hendrik Maryns Interesting websites: www.lieverleven.be (I cooperate) www.eu04.comEuropean Referendum Campaign aouw.orgThe Art Of Urban Warfare -- To

Re: Executing perl code on the command line

2005-03-13 Thread Hendrik Maryns
Gomez, Juan schreef: Single quotations? Those are for Unix/Linux perl only For windows we have to stick to double qoutation marks --well that's what I remmeber from quigley's book (Perl by example) :o) Indeed, read perldoc perlrun, especially the part about #! H. -- Hendrik Maryns I

Re: Simplify perl -e '$a = [1,2,3,4,7]; print $a->[$#{@$a}]'

2005-03-12 Thread Hendrik Maryns
$words[3]' for 1, 3, 0, 2; The eval is required because you can only set $_ to a constant value. Nice one! I even think I understand it :-p Shouldn't there be a ; after [3]? But no, let me guess: you don't need to type the last ; of your program? H. -- Hendrik Maryns In

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

2005-03-07 Thread Hendrik Maryns
John W. Krahn schreef: Hendrik Maryns wrote: Kevin Horton schreef: 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

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

2005-03-07 Thread Hendrik Maryns
John W. Krahn schreef: Hendrik Maryns wrote: Hi, Hello, I'm writing a little script for removing "rustle" from a log file from chat channels, in order to do linguistic research on them. I took the file and tied it with Tie::File, in order to easily acces it. This probably isn&

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

2005-03-07 Thread Hendrik Maryns
Kevin Horton schreef: At 11:08 -0800 6/3/05, John W. Krahn wrote: Hendrik Maryns wrote: Hi, Hello, I'm writing a little script for removing "rustle" from a log file from chat channels, in order to do linguistic research on them. I took the file and tied it with Tie::File, in

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

2005-03-06 Thread Hendrik Maryns
Hi, I'm writing a little script for removing "rustle" from a log file from chat channels, in order to do linguistic research on them. I took the file and tied it with Tie::File, in order to easily acces it. This probably isn't all necessary here, but I want to modify the file itself, not writ

Re: perl.beginners Weekly list FAQ posting

2005-03-01 Thread Hendrik Maryns
outdated, or do I have a problem? Cheers, H. -- Hendrik Maryns Interesting websites: www.lieverleven.be (I cooperate) www.fuckforforest.com For the frustrated, though engaged fellow-men www.eu04.comEuropean Referendum Campaign aouw.orgThe Art Of Urba