<?xml version="1.0" encoding="windows-1252"?>
<node id="1004257" title="shift and logical or" created="2012-11-16 17:53:39" updated="2012-11-16 17:53:39">
<type id="115">
perlquestion</type>
<author id="1003815">
jonagondos</author>
<data>
<field name="doctext">
i understand the shift and logical or ||
but i keep seeing this type of stuff

my $host = shift || 'localhost';
my $port = shift || 200;

what is the combination of shift and || doing?</field>
</data>
</node>
