Hi All,
I some time ago promised that if i am able to solve the problem of multibyte
characters than i'll tell you.
This is to tell all who took intrest in solving my problem of searching the
multibyte characters.
Here is the complete solution:
open(INFILE,"<$ARGV[0]");
open(OUTFILE,">$ARGV[0].tinny");
while(<INFILE>)
{
if(/([^\x2-\x7E])/)
{
if($_=~/<iso>(.*?)<\/iso>/)
{
$ISO=$1;
s/([^\x2-\x7E]+)/$ISO/;
}
}
print OUTFILE $_;
}
close(INFILE);
close(OUTFILE);
Thanks,
Pradeep
----- Original Message -----
From: "Sheila Fenelon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: 04 May, 2005 8:32 PM
Subject: Re: [wdvltalk] Perl help request
> Pradeep Dobhal wrote:
> >
> > The situaiton here is that i need to find the multiple byte characters.
They
> > are present in a file and i need to catch them up and mark them using
the
> > perl program.
> >
> > I need help with some code to search the multibyte characters.
> >
> > Thanks,
> > --P
>
> Does this help?
> http://www.unix.org.ua/orelly/perl/cookbook/ch06_19.htm
>
>
> Sheila
> http://www.shefen.com/
>
>
> ____ . The WDVL Discussion List from WDVL.COM . ____
> To Join wdvltalk, Send An Email To:
mailto:[EMAIL PROTECTED] or
> use the web interface
http://e-newsletters.internet.com/discussionlists.html/
> Send Your Posts To: [email protected]
> To change subscription settings, add a password or view the web interface:
> http://intm-dl.sparklist.com/read/?forum=wdvltalk
>
> ________________ http://www.wdvl.com _______________________
>
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
>
> Please include the email address which you have been contacted with.
>
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.