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
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
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
07/22/2009 05:29 PM
Subject: Using perl c
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