Larry Wall <> writes:
 > 
 > It would be really funny to use cent ¢, pound £, or yen ¥ as a
 > sigil, though...
 > 
 > > C'mon, everybody's doing it!  First one's free, kid...  ;-)
 > 
 > People who believe slippery slope arguments should never go skiing.
 > 

just (re)reading *old* threads : 

is it possible to extend the perl sigil behaviour . 

that is , one day somebody decides it needs ¢ as sigil for certain
class of variables . will it be possible to do . ( without rewriting
the whole perl )  

e.g. 

my ¢a = ... ; 

and this being the same as 

my ??a is Cent_sigil_type ; 

like 

my $a ; 

is same as 

my $a is Scalar ; 

( as I understand , perl knows what to do with $a not because it
notice every time '$' in the beginning but because it notice the
compile -- time property of that variable "is Scalar" ) 

I am not sure if that is *all* sigil is about in perl but if yes then
adding new sigil will be doable : just add one more property to all
variables starting with ¢ , e.g. ( and provide corresponding
functionality -- that is a black hole !) . 


so it seems that sigil *is*  extensible. ( at least through some sort
of filtering ) . 

e.g. 

I can force all variables starting with 'A' to be constant . 
now 'A' is special sigil . 

( can I ??? )
( probably this is something perl should avoid somehow ) 

arcadi . 

Reply via email to