advanced diff in Perl

2003-12-15 Thread Dusan Juhas
chars...) Enhanced diff: 1.replace comments (awk/sed) 2.sort lines 3.diff -b is better but still not sufficient because some parameters are multi-lined: myparam = This is my \ long setting and some of them are within specific context: mysetting = 1 mysetting = 2 -- Best regards, Dusan

an error in a simple regexp

2002-07-12 Thread Dusan Juhas
Hi, I typed this simple cmd in the bash: echo 123 |perl -pe 's/(\d)(\d)/$1.$2/g' and expected ouput like 1.2.3 but obtained this one: 1.23 What's wrong and how to write a regexp cmd which will transfer a number to digits with dots in between? eg: 1234 -> 1.2.3.4 Thanx Regards, Dusan -- To uns

Graphical interface

2001-09-03 Thread Dusan Juhas
l. Is it true? Thanx for any advice. Dusan Juhas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Associative array

2001-08-17 Thread Dusan Juhas
Hi, not directly. But do st. like: @foo = "some string"; @new_foo = split(//,$foo[0]); now you can access $new_foo[6] Not very witty but useful ;-) At 10:14 AM 8/14/01 -0700, Eric Wang wrote: >Hi guys, > >Got a quick question. >If I let @foo = "some string"; >can I access say the "t" in this st