Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Symbol::Global::Name(3User Contributed Perl DocumentatiSymbol::Global::Name(3)

NAME
       Symbol::Global::Name - finds name and type of a global variable

SYNOPSIS
	   package My;
	   our $VERSION	= '0.1';

	   use Symbol::Global::Name;
	   print Symbol::Global::Name->find( \$VERSION );

	   # prints '$My::VERSION'

DESCRIPTION
       Lookups symbol table to find an element by reference.

METHODS
   find
	   Symbol::Global::Name->find( \$VERSION );
	   Symbol::Global::Name->find( \$VERSION, package => 'My::Package' );
	   Symbol::Global::Name->find( reference => \$VERSION );
	   Symbol::Global::Name->find( reference => \$VERSION, package => 'My::Package'	);

       Takes a reference and optional package name. Returns name of the
       referenced variable as long as it's in the package or sub-package and
       it's a global variable. Returned	name is	prefixed with type sigil, eg.
       '$', '@', '%', '&' or '*'.

AUTHOR
       Ruslan Zakirov <ruz@bestpractical.com>

LICENSE
       Under the same terms as perl itself.

perl v5.24.1			  2014-02-13	       Symbol::Global::Name(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | AUTHOR | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Symbol::Global::Name&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help