in reply to Re: Re: Using a variable as pattern in substitution
in thread Using a variable as pattern in substitution

Avoid chop unless you want to remove the last character from every line of your file. Are you sure the last one ends with a newline? If not, oops.. there goes a character of data. chomp is not so indiscriminate.

Makeshifts last the longest.

  • Comment on Re^3: Using a variable as pattern in substitution