![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Context was someone asking why
Note: -p won't make a difference here, but it helps if you suspect perl's notion of operator priorities is different from yours.
(crossposted from http://dw-dev-training.dreamwidth.org/23661.html at pne's suggestion)
print "Hello, world!\n" && die;doesn't output anything. Someone replied with a nifty trick to help figure this out:
perl -MO=Deparse -e 'print "Hello, world!\n" && die;'or
perl -MO=Deparse,-p -e 'print "Hello, world!\n" && die;'(go ahead and try it).
Note: -p won't make a difference here, but it helps if you suspect perl's notion of operator priorities is different from yours.
(crossposted from http://dw-dev-training.dreamwidth.org/23661.html at pne's suggestion)