develooper Front page | perl.beginners | Postings from March 2002

RE: reading one character at a time

Thread Previous | Thread Next
Timothy Johnson
March 4, 2002 08:27
RE: reading one character at a time
Message ID:
I can't check this right now, but I believe you can do it like this:

$Line = "some string";
@array = split //,$Line;  #split on null
   $char = read_char($_);

-----Original Message-----
From: richard noel fell
Sent: 3/3/02 6:28 PM
Subject: reading one character at a time

Is there a perl function that reads one character at a time from a
string and and returns that character? Something like the following:
$Line = some string;
foreach ($Line){

Dick Fell

To unsubscribe, e-mail:
For additional commands, e-mail:

This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About