Stuart Rocks wrote:
>>
>> C<With> would also make the [variable, alias, whatever]
>> default, but not replace the $_:
>>
>> $_ = "monkey ";
>> $foo = "coward";
>> with ($foo){
>> print;
>> print "$_";
>> }
>>
>> would output "monkey coward".
>okay, "coward" is default but $_ has not been replaced, so would not
>the code example print "coward monkey"
>Then how would you write "I am not a coward"
with ($foo)
{
print "I am not a"; ##What do I use here or do I have to issue a
##separate print like...
print;
}
Ilya
- Re: aliasing - was:[nice2haveit] raptor
- Re: aliasing - was:[nice2haveit] Jeremy Howard
- Re: aliasing - was:[nice2haveit] John Porter
- Re: aliasing - was:[nice2haveit] Bart Lateur
- Re: aliasing - was:[nice2haveit] jh_lists
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- Re: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- RE: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] John Porter
- RE: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] John Porter
- Re: aliasing - was:[nice2haveit] Me
- Please sign me off Alice Li
