You'd probably have better luck using split.

open(INFILE,"foo.bar");
while(<INFILE>){
   my @oneAtATime = split //,$_;
   foreach $char(@oneAtATime){
      do something...
   }
}

-----Original Message-----
From: Agustin Rivera [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 5:08 PM
To: [EMAIL PROTECTED]
Subject: Default Input Record Separator


Is there anyway to change the Default Input Record Separator.. or $/ .. to
allow me to read a character at a time?

I tried    $/=~ /./;    but it doesn't work.

Thanks,
Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------------------
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.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to