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

tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:

In the following code, I can call a module function using &, or not using &. Is there ever a scenario when it's preferrable to use the &? Where can I learn more about this?
#!perl #test.pl use strict; use warnings; #custom modules use lib 'E:/data/entwicklungsArena/perl/development/modules'; #Works use Misc::Logger; print 'without &: '; Misc::Logger::logMessage("test"); #Also works: print 'with &: '; &Misc::Logger::logMessage("test");