So today I've learnt some new things, Thanks to everybody including nafiseh
, Peter Scott, Peter Lovett & Jeff 'japhy' Pinyan here for the help.

Quite an interesting $/ input record seperator which by default is \n
To understand $/ better, I did this :-

-- start script --
@array = ( "hello\n" ,"world\n" ,"testing\n" , "123\n");
chomp @array; ## get rid of the newline

$/ = "testing";
@array2 = ( "hello\n" ,"world testing" ,"testing2\n" , "123\n");
chomp @array2; ## does not get rid of \n but will get rid of testing

print (@array,"\n") ;
print (@array2,"\n"); 

--- results ----
helloworldtesting123
hello
world testing2
123
----- end -------

Thank You !

--- end of msg ---

----- Original Message -----
From: nafiseh saberi
To: Leon ; [EMAIL PROTECTED]
Sent: Wednesday, November 21, 2001 2:24 PM
Subject: Re: what is this called $/


hi.
 it is for The input record separator, newline by default. May be
multicharacter.
I send one attachment for you.
it is very good with all of special characters.

____________________________

Nafiseh Saberi    ....   Iran.
____________________________
----- Original Message -----
From: "Leon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 09:24 AM
Subject: what is this called $/


> I know of the following :-
>
> $" = '|interpolation-seperator|';
> $, = '|seperator|';
> $\ = '\n endOfLine';
> my @a = qw (hi how are you);
> print "@a\n";
>
> My question is what is this called ==> $/
> and where can I do some reading on $/ .
>
> Thanks
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to