This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Challenge


From: "Peter C. Norton" <spacey@lenin.nu>
Subject: Re: Challenge
Date: Thu, 3 Aug 2000 00:20:21 -0700
Message-ID: <20000803002021.B17170@lenin.nu>

> On Thu, Aug 03, 2000 at 02:20:15PM +0900, sen_ml@eccosys.com wrote:
> > p.s. to peter: i think there are some spurious pieces to the original
> > perl code (e.g. saving $/), is that correct?  i ask because i'd like
> > to be sure that i understand the code.
> 
> You're correct.  That's something I do on general principle, in case I put
> that code into something else later, and I need $IFS set correctly again
> (like I set it to something else prior, and want that setting back).

thanks for the clarification.  i thought that might be the case.  i
take it as w/ many perl things, the script was a quick hack (just
observing), as you use "my" for some variables and not others, and
some variables are not used at all.


off-topic perl hack note: i think you can use a block w/ local($/), to
get the effect you like:

{
  local($/);

  # do what you like here

}

# out here $/ is restored

but, may be you knew that already ;-)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]