my $text; if (@ARGV) { $text = shift(@ARGV); } else { local $/; $text = ; } #### my $text; { local $/; $text = <>; }