Mohammed Khatib wrote:
> Hi All,
>
> Just wondering, if I specify $/ = "string" in the main body of a program,
> does the value of $/ carry on if I call a sub-routine and use $/ in the
> sub-routine? Or does it go back to its default while it is in the
> sub-routine block?
You can localize it with:
my @array;
open IN, ...
{ local $/ = 'string';
@array = <IN>;
}
if that helps any.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl