int b = ({ multiple commands here; final command = return value; }); #### my $a = shift || ({ print "enter in value for a:"; ; }); #### #!/user/local/bin/perl use warnings; use strict; sub IN($){ print shift; my $ret = ; chomp $ret; return $ret; } my $a; my $b; $a = shift || IN("Enter value for b:"); if($b = shift){} else{ print "Enter value for c:"; chomp ($b = ); } print "a: $a\n"; print "b: $b\n";