The /no_proc/ is a match statementoperator on $_ which yields a true/false value. If the line in $_ has "no_proc", it gets printed and that's it. If that line doesn't have "no_proc" then the 2nd "else" statement is printed...."$_..in proc".
print will return a "true value". What would "print /adsf/;" mean? I think nothing, but I've been wrong before!
Updated: changed "statement" to "operator"
In reply to Re^3: if modifier of a print statement
by Marshall
in thread if modifier of a print statement
by si_lence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |