Sample Header Ad - 728x90

How to combine ...if $x and a here-doc in perl?

0 votes
1 answer
125 views
How is one supposed to write this?
print <
I think it is called postfix notation, and a here-doc. I get a syntax error. OK, I guess I'll just use
print "bla" if $x;
which, yes, does what I want.
Asked by Dan Jacobson (560 rep)
Feb 14, 2024, 12:01 PM
Last activity: Feb 14, 2024, 12:20 PM