Re: Using perl code in K and C shell

2009-07-23 Thread John W. Krahn
Subject: Re: Using perl code in K and C shell Jenny Chen wrote: I need some help with utf-8 string handling in Perl. I tried to trim utf-8 strings using Perl. Follow is the main portion of the codes, but it does not work. Any help will be greatly appreciated. What does that have to do with

Re: Using perl code in K and C shell

2009-07-23 Thread Jenny Chen
Hi All, I need some help with utf-8 string handling in Perl. I tried to trim utf-8 strings using Perl. Follow is the main portion of the codes, but it does not work. Any help will be greatly appreciated. Jenny - open (DIC_OLD, "<:utf8", $tmp_file) || die "can not open $tmp_file: ! \n"; ope

Re: Using perl code in K and C shell

2009-07-22 Thread John W. Krahn
Mallya, Vaibhav U wrote: Hi All, Hello, I need to used some perl code in k and C shell. But it is giving me bad substitution. Same code works fine in bash. Any help would be appreciated. perl -i -e '$re=q~'${1//~/\\~}'~; print "$re"; while (<>) { /$re/ ? $c++ : print;}exit($c ? 0 : 1)' /home

Re: Using perl code in K and C shell

2009-07-22 Thread Eric Veith
07/22/2009 05:29 PM Subject: Using perl c

Using perl code in K and C shell

2009-07-22 Thread Mallya, Vaibhav U
Hi All, I need to used some perl code in k and C shell. But it is giving me bad substitution. Same code works fine in bash. Any help would be appreciated. perl -i -e '$re=q~'${1//~/\\~}'~; print "$re"; while (<>) { /$re/ ? $c++ : print;}exit($c ? 0 : 1)' /home/vmallya/testing || echo " Delete of l