bdimych has asked for the wisdom of the Perl Monks concerning the following question:
prints nothing as expectedperl -e 'print ""=~/foo/ and ""=~/bar/'
prints 1perl -e 'print ""=~/.*/ and ""=~/bar/'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl regular expressions and empty strings unexpected results
by moritz (Cardinal) on Jan 23, 2012 at 09:44 UTC | |
|
Re: perl regular expressions and empty strings unexpected results
by Anonymous Monk on Jan 23, 2012 at 10:19 UTC |