Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I convert each character in a string to its ASCII value ?

by ChOas (Curate)
on Sep 21, 2001 at 13:43 UTC ( #113840=note: print w/replies, xml ) Need Help??


in reply to How do I convert each character in a string to its ASCII value ?

Hi!
#!/usr/bin/perl -w use strict; my $String="This is Ascii"; $String=~s/(.)/ord($1)/eg; print "Ascii: $String\n";

p.s. Might not be the best answer offered here, but it answers your question to the fullest ;)

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;
  • Comment on Re: How do I convert each character in a string to its ASCII value ?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://113840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2016-10-01 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.