
kunwar
New User
Mar 22, 2011, 3:40 AM
Post #1 of 4
(585 views)
|
|
\K in perl not working
|
Can't Post
|
|
Hi All, I have just started learning perl and was working on my one-liners tips and tricks. Instead of using the below command : perl -lape 's/(^From:).*/$1 Nelson Elhage <nelhage\@ksplice.com>/' i tried using the \k command using the below command but it gave no results: perl -lape 's/^From:\K.*/ Nelson Elhage <nelhage\@ksplice.com>/' Is there some problem with the perl version on my unix box. Please find some of details of the platform i am using:
> uname -a HP-UX hpxi017 B.11.23 U ia64 1433056900 unlimited-user license > perl -v i This is perl, v5.8.8 built for IA64.ARCHREV_0-thread-multi (with 33 registered patches, see perl -V for more detail) Sorry if it is a very basic question Regds, Kunwar
|