kaarthikeyaan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
When $p4have contains value like "C:\Documents and Settings\All Users\Favorites" (i.e. without anyspecial character or german characters) it is working absolutely fine but if the $p4have contains any special chars or foreign chars (e.g. D:\docs\für_den_Integrator.pdf) it is always false.if ($p4have !~ /$local/) { print "$local - Extra File\n"; $extra++; }
Can someone help me to get rid of this problem.
Thanks in advance
Regards
Karthikeyaan A. R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to handle Special characters and foreign characters in perl
by moritz (Cardinal) on Apr 04, 2012 at 13:21 UTC | |
by kaarthikeyaan (Initiate) on Apr 05, 2012 at 11:13 UTC | |
|
Re: How to handle Special characters and foreign characters in perl
by CountZero (Bishop) on Apr 04, 2012 at 17:28 UTC |