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
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
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
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
> > $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
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
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