tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
Problem is, =~ won't match the special 'ü' character coming in from dos. How do I get perl to behave for me in this scenario?
Thanks very much for your help.
my $result = `ping -n 1 "jenda.krynicy.cz" ` . "\n"; print "result: $result\n\n"; #if ($result =~ /zeitüberschreitung/i) { if ($result =~ /zeitüberschreitung/i) { # should match but fails becau +se of german characters #ping timed out, something is wrong with the repository print "Ping timed out for $domain: \n\n $result \n\n"; } else { #good repository. print "$domain passed ping: \n"; print `ppm repository add $repository $location` . "\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching german characters output from system call.
by bart (Canon) on May 09, 2005 at 18:12 UTC | |
|
Re: matching german characters output from system call.
by thundergnat (Deacon) on May 09, 2005 at 18:24 UTC | |
by tphyahoo (Vicar) on May 13, 2005 at 12:27 UTC | |
|
Re: matching german characters output from system call.
by Animator (Hermit) on May 09, 2005 at 18:18 UTC | |
by tphyahoo (Vicar) on May 12, 2005 at 15:57 UTC | |
|
Re: matching german characters output from system call.
by sh1tn (Priest) on May 09, 2005 at 17:53 UTC | |
by tphyahoo (Vicar) on May 09, 2005 at 18:04 UTC | |
|
Re: matching german characters output from system call.
by tphyahoo (Vicar) on May 10, 2005 at 10:38 UTC |