GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYMBOL::GLOBAL::NAME (3)

.ds Aq ’

NAME

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

CONTENTS

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SYMBOL::GLOBAL::NAME (3) 2014-02-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.