how to run a bareword test on ebcdic ?

[email protected] (rajarshi das)
Newsgroups perl.unicode,perl.perl5.porters
Message-ID <[email protected]>
hi,
A bareword test : 
---------------------------------
  use utf8;
  my %hash = (&#1090;&#1077;&#1089;&#1090; => 123);
if (($hash{&#1090;&#1077;&#1089;&#1090;}) eq 
($hash{'&#1090;&#1077;&#1089;&#1090;'})) print "ok\n";
 
----------------------------------

The chars in the hash are \x{0442}, \x{0435}, \x{0441}
and \x{0442}. 
On ebcdic, the chars (barewords) are not displayed. 

On ebcdic, can I write :
my %hash = ("\x{0442}\x{0435}\x{0441}\x{0442}" => 123)
if (($hash{"\x{0442}\x{0435}\x{0441}\x{0442}"}) eq
($hash{eval '"\x{0442}\x{0435}\x{0441}\x{0442}"'}))
print "ok\n";

I use eval since the single quote outside a double
quote isnt recognised as is. 

1) Is the above allowed ?
2) Is there a different way to do the bareword test ?

Thanks in advance,
Rajarshi.



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.