Anonymous Scalars

in Perl Tips, Data Structures
by William Ward on March 27, 2003 3:38 pm

If you’ve done much Perl programming you’ve probably encountered the Anonymous Hash, Anonymous Array, and probably Anonymous Subroutines as well. Did you know there’s also an Anonymous Scalar? It’s one of those things that is not very useful most of the time, but is the perfect tool for some situations. Here are two situations where you can use them, however:

(more…)