http://www.perlmonks.org?node_id=1013914


in reply to question about star character in Perl

The '*' character in this context is a sigil for typeglobs. It is to typeglobs approximately as '$' is to scalars, '%' is to hashes, '@' is to arrays, and '&' is to subroutines.

See perldoc perldata | Typeglobs and Filehandles.

In this case 'XML' is a bareword filehandle. It is being passed as a typeglob to the get_data() function, which presumably is populating %hash with a dump of the XML file.


Dave