Is this what you are looking for?
$line = "Is there a way to find the ASCII value of a character in perl, so
that I can ouput the ASCII code and the character in the following code?";
@chars=split('',$line);
foreach $ch (@chars) {
$c = ord $ch;
print "$ch, $c\n";
}
Ralph Dell
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
- RE: conversion Bill Duncan
- Re: conversion J�rg Plate
- RALPH
