in reply to Delete a line
Hi, please edit your post and enclose your code in code tags as shown in the instructions. Reading instructions and following them, and attention to detail, are important skills in programming.
Your code:
... uses the numeric "not equal" comparison operator != and hence you get the helpful error because you are passing strings to it. See Equality Operators.if( $_ != /^\s/)
You want:
... which uses the "not a match" regular expression operator !~. See Simple word matching.if( $_ !~ /^\s/)
Hope this helps!
|
|---|