Re: Default Input Record Separator

2002-03-26 Thread Alfred Vahau
Hi, Period (.) is a metacharacter so will not work. Needs to be escaped. Like so: $/=~/\./; It would have been set elsewhere before testing. Having you looked up Splitting the String (Digest No. 752). There you'll find the following from one of the contributors $a = 'abcdef'; @arr = split (//,

Re: Default Input Record Separator

2002-03-25 Thread John W. Krahn
Agustin Rivera wrote: > > 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. $/ = \1; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Default Input Record Separator

2002-03-25 Thread Agustin Rivera
ECTED]>; "Timothy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 25, 2002 5:18 PM Subject: RE: Default Input Record Separator > > Check out the read() function. > > perldoc -f read > > Is this what you are looking for? > > -Ori

RE: Default Input Record Separator

2002-03-25 Thread Timothy Johnson
Check out the read() function. perldoc -f read Is this what you are looking for? -Original Message- From: Agustin Rivera [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 5:16 PM To: Timothy Johnson; [EMAIL PROTECTED] Subject: Re: Default Input Record Separator Yeah, but the

Re: Default Input Record Separator

2002-03-25 Thread Agustin Rivera
hy 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,

RE: Default Input Record Separator

2002-03-25 Thread Timothy Johnson
You'd probably have better luck using split. open(INFILE,"foo.bar"); while(){ 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 P