perl bless with fat comma -


i know perl bless can take in 1 or 2 arg stated in perlbless. however, not understand bless fat comma in below code doing? same bless \$value,$class; ?

# construct tie. sub tiescalar {      $class = shift;     $value = shift || 0;      bless \$value => $class; } 

the fat comma way of writing comma. can see :

perl -mo=deparse -e 'bless \$value => $class' bless \$value, $class; -e syntax ok 

an interesting discussion can found here too.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -