RE: Taking bakcups of a files in directory structure

2001-12-20 Thread Brent Dax
krish: # I am a beginner in Perl and have a very trivial query. I have # some .expect # files in my directory structure which are spread all # throughout. I want to # convert these files (only expect files) to .expect.bak. # Please let me know # as to how this can be done using Perl script. Even p

Taking bakcups of a files in directory structure

2001-12-20 Thread krish
Hi, I am a beginner in Perl and have a very trivial query. I have some .expect files in my directory structure which are spread all throughout. I want to convert these files (only expect files) to .expect.bak. Please let me know as to how this can be done using Perl script. Even pointers to shel

Re: Apropos of nothing...

2001-12-20 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: >> >$val = (foo())[0]; >> > >> > List? >> >> Scalar, obviously. > > How do you figure that? (Not a criticism: I'd really like to understand your > thought process here so I can assess the relative DWIMity of the two > alternat

Re: Apropos of nothing...

2001-12-20 Thread Damian Conway
Aaron Sherman wrote: > >> $ref = [1,2]; > >> @ary[$ref] = foo(); # probably a syntax error > > Ok, as far as I can recall, Larry hinted that arrays and references to > arrays would be interchangable in many contexts in P6. In this case, I > can't see any reason that subscripting wou

Re: Apropos of nothing...

2001-12-20 Thread Damian Conway
> > $val = (foo())[0]; > > > > List? > > Scalar, obviously. How do you figure that? (Not a criticism: I'd really like to understand your thought process here so I can assess the relative DWIMity of the two alternatives). > With a possible runtime error if foo doesn't ret

Re: Apropos of nothing...

2001-12-20 Thread Piers Cawley
Aaron Sherman <[EMAIL PROTECTED]> writes: > On Sun, Dec 16, 2001 at 03:55:10PM +1100, Damian Conway wrote: > > [...] > >>> And, just for laughs: >>> >>> $ref = [1,2]; >>> @ary[$ref] = foo(); # probably a syntax error > > Ok, as far as I can recall, Larry hinted that arrays a

Re: Apropos of nothing...

2001-12-20 Thread Aaron Sherman
On Sun, Dec 16, 2001 at 03:55:10PM +1100, Damian Conway wrote: [...] >> And, just for laughs: >> >> $ref = [1,2]; >> @ary[$ref] = foo(); # probably a syntax error Ok, as far as I can recall, Larry hinted that arrays and references to arrays would be interchangable in many