c:\@Work\Perl\monks>perl -wMstrict -le "sub hiya { print 'hello there ', $_[0]; } hiya('sailor'); ;; my $coderef = *hiya{CODE}; $coderef->('everybody'); " hello there sailor hello there everybody
Update: Please see -> operator discussion The Arrow Operator in perlop; *foo{THING} discussion in Typeglobs and Filehandles in perldata.
Give a man a fish: <%-{-{-{-<
In reply to Re: Variable behaving as a function call
by AnomalousMonk
in thread Variable behaving as a function call
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |