Lines Matching full:foo*

65     $scalarref = \$foo;
69 $globref = \*foo;
74 But see the explanation of the C<*foo{THING}> syntax below. However,
97 As a special case, C<\(@foo)> returns a list of references to the contents
98 of C<@foo>, not a reference to C<@foo> itself. Likewise for C<%foo>,
231 the *foo{THING} syntax. *foo{THING} returns a reference to the THING
232 slot in *foo (which is the symbol table entry which holds everything
233 known as foo).
235 $scalarref = *foo{SCALAR};
240 $globref = *foo{GLOB};
242 All of these are self-explanatory except for C<*foo{IO}>. It returns
246 versions of Perl, C<*foo{FILEHANDLE}> is a synonym for C<*foo{IO}>, though it
250 C<*foo{THING}> returns undef if that particular THING hasn't been used yet,
251 except in the case of scalars. C<*foo{SCALAR}> returns a reference to an
252 anonymous scalar if $foo hasn't been used yet. This might change in a
255 C<*foo{IO}> is an alternative to the C<*HANDLE> mechanism given in
364 $array[$x]->{"foo"}->[0] = "January";
370 C<{"foo"}> in it. Likewise C<< $array[$x]->{"foo"} >> will automatically get
377 $array[$x]{"foo"}[0] = "January";
420 So C<${*foo}> and C<${\$foo}> both indicate the same scalar variable.
447 $name = "foo";
448 $$name = 1; # Sets $foo
449 ${$name} = 2; # Sets $foo
450 ${$name x 2} = 3; # Sets $foofoo
451 $name->[0] = 4; # Sets $foo[0]
452 @$name = (); # Clears @foo
453 &$name(); # Calls &foo() (as in Perl 4)
455 ${"${pack}::$name"} = 5; # Sets $THAT::foo without eval
559 $struct = [{foo => 1, bar => 2}, "FOO", "BAR"];
561 $struct->{foo}; # same as $struct->[1], i.e. "FOO"
564 keys %$struct; # will return ("foo", "bar") in some order
565 values %$struct; # will return ("FOO", "BAR") in same some order
576 $pseudohash = fields::phash(foo => "FOO", bar => "BAR");
588 $phash = fields::phash([qw(foo bar pants)], ['FOO']);
591 print exists $phash->{foo}; # true, 'foo' was set in the declaration
606 print delete $phash->{foo}; # prints $phash->[1], "FOO"
607 print exists $phash->{foo}; # false
608 print exists $phash->[0]{foo}; # true, key still exists
609 print delete $phash->[0]{foo}; # now key is gone
610 print $phash->{foo}; # runtime exception