I don't see that this solution was correct, since I explicitly said that my
$a, $b, and $c was constants, so it only could be a mistake try to change
them.
Flexibility is good, but with rules.
You can do the same with the initial constants:
perl -e 'for (@x=(1,2,3,4,5,6)) {$_++; print}'
Can't you?
Merlin, The Mage
On Tuesday 07 May 2002 10:37 am, -Sx- IUDICIUM wrote:
> Like this:
>
> On Tuesday, May 7, 2002, at 12:48 PM, Merlin, The Mage wrote:
> > I understand that, but in that case how would you run on this:
> >
> > ������� (*a,*b,*c)=(\1,\2,\3);
> > ������� for ($a,$b,$c) {
> > ������� ������� $_++;
> > ������� ������� print $_;
> > ������� }
>
> perl -e '(*a,*b,*c)=(\1,\2,\3); for ( @x = ($a,$b,$c) ) { $_++; print }'
>
> A fixed original post:
> perl -e 'for ( @x = (1,2,3,4,5,6,7,8,9,10) ) { $_++; print }'
>
> _Sx____________________
> ('> -Sx- IUDICIUM
> //\ Have Computer -
> v_/_ Will Hack...
>
> "iudicium ferat"
--
Merlin, The Mage
new camelot site: affiliates.camelot.co.pt - Directorio de affiliate programs