my $myvar; { local $/ = undef; if ( ( $myvar = ) =~ s/\n+//g ) { alert_user(); } }