|Think about Loose Coupling|
Re: What are these?by qslack (Scribe)
|on Apr 20, 2002 at 05:56 UTC||Need Help??|
Foo and bar are just demonstration variables. They are used just in examples, when the thing being demonstrated is not the actual implementation of the code, but just a concept.
Shift removes the first item from the @_ array (or another array if one is provided to the function, or @ARGV if not used in a subroutine) and puts it in $whatever. So if you had this:
my @foo = ('bar', 'quux'); my $whatever = shift @foo;
$whatever would contain 'bar,' and @foo would contain only the 'quux' element.
edit: thanks thelenm - fixed
perl -e 's ssfhjok qupyrqs&&tr sfjkohpyuqrspitnrapj"hs&&eval&&s&&&'