swapnil has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Text::Unaccent; my $str = "Los-Cabos-Meliá"; #my $str = "This is a simple string"; my $unaccented = unac_string('UTF-8',$str); print "Original : ".$str."\n"; print "Unaccent : ".$unaccented."\n";
This thing works fine on my local machine but strangely gives 'Invalid argument' error on other test machine with same version of Text::Unaccent. Please suggest what might be the issue.
--------- OUTPUT ---------------Thanks,unac_string: Invalid argument Original : Los-Cabos-Meli Use of uninitialized value $unaccented in concatenation (.) or string +at remove_accent2.pl line 12. Unaccent :
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issue with unac_string()
by choroba (Cardinal) on May 17, 2012 at 09:16 UTC | |
|
Re: Issue with unac_string()
by Khen1950fx (Canon) on May 17, 2012 at 10:33 UTC | |
by Anonymous Monk on May 17, 2012 at 12:48 UTC | |
by Anonymous Monk on May 17, 2012 at 12:57 UTC | |
by Khen1950fx (Canon) on May 17, 2012 at 14:05 UTC |