#!/usr/bin/perl -w use strict; my $String="This is Ascii"; $String=~s/(.)/ord($1)/eg; print "Ascii: $String\n";
In reply to Re: How do I convert each character in a string to its ASCII value ?
by ChOas
in thread How do I convert each character in a string to its ASCII value ?
by ypcat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |