en:perl:perlother
This is an old revision of the document!
Other
Other type can also be ref or deref $coderef = \&handler; $globref = \*foo copy: $aref2 = [@{$aref1}]; deref + put in a array ref $href2 = {%{$href1}}; deref + put in a array ref
Autovivification
Make thing exists automaticaly...if access.....can produce error Can use: use warnings NONFATAL => 'all', FATAL => 'uninitialized' or simply use warnings FATAL => 'uninitialized' or use Hash::Util qw( lock_keys unlock_keys ); my $some_ref = { akey => { deeper => 1 } }; lock_keys %$some_ref;
en/perl/perlother.1626113956.txt.gz · Last modified: 2021/07/12 20:19 by Bruno Manzoni