Perl provides the
ref()
function so that you can check the reference type before dereferencing a reference…By using the
ref()
function you can protect program code that dereferences variables from producing errors when the wrong type of reference is used…
More Related Contents:
- Perl – Global symbol $DIR requires explicit package name (why can’t I print the output?) [closed]
- perl XML::Simple print issue [closed]
- What’s the easiest way to install a missing Perl module?
- How do I use boolean variables in Perl?
- Doesn’t Perl include current directory in @INC by default?
- Why does my file content/user input not match? (missing chomp canonical) [duplicate]
- What is the best way to slurp a file into a string in Perl?
- Scalar vs List Assignment Operator
- How can I check if a Perl array contains a particular value?
- How do you capture stderr, stdout, and the exit code all at once, in Perl?
- How to fix a locale setting warning from Perl
- How can I fire and forget a process in Perl?
- What’s the best way to make a deep copy of a data structure in Perl?
- What is the difference between new Some::Class and Some::Class->new() in Perl?
- Iterating hash based on the insertion order?
- Why can’t I match my string from standard input in Perl?
- What’s broken about exceptions in Perl?
- Delete ClearCase Views Script
- How to pass a variable from a child process (fork by Parallel::ForkManager)?
- What’s the difference between single and double quotes in Perl?
- How do I get the full path to a Perl script that is executing?
- Perl subroutine arguments
- How to create recursive hash of hash ? (With unlimited deep)
- How can I call a shell command in my Perl script?
- Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
- How do I lock a file in Perl?
- How can I find the version of an installed Perl module?
- How can I escape an arbitrary string for use as a command line argument in Bash?
- Nested subroutines and Scoping in Perl
- Why doesn’t print output anything on each iteration of a loop when I use sleep?