leszekdubiel has asked for the wisdom of the Perl Monks concerning the following question:
I am completely confused why this fails:
Die should never happen because empty pattern matches any text... Why? Why? Same on 5.24 and 5.26. Linux Debian. The codeprintf "alfa\nwhatever" | perl -CSDA -n -e '// or die "not possible! - +- $_ --"; /alfa/;'
also fails, but this one not (!!!!):printf "alfa\nwhatever" | perl -CSDA -n -e '// or die "not possible! - +- $_ --"; /al/;'
printf "alfa\nwhatever" | perl -CSDA -n -e '// or die "not possible! - +- $_ --"; /a/;'
Back to
Seekers of Perl Wisdom