Yeah, but the problem is I don't want to wait for $_ to reach the newline before spitting out data. I want it immediately.
Much in the same way $|=1 would give me data. Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com ----- Original Message ----- From: "Timothy Johnson" <[EMAIL PROTECTED]> To: "'Agustin Rivera'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 5:07 PM Subject: RE: Default Input Record Separator > > 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]