in reply to Re^3: inserting array of data into text file
in thread inserting array of data into text file

Wrong. He wants it as a string, so it shouldn't have an /e. Quite the contrary, adding an /e would make his syntax invalid. You didn't even test your code, did you?

The only code I see is in the array index, and code in array or hash indexes is always executed, if the variable will be interpolated — thus: in double-quotish context. That's how the module Interpolation works.

  • Comment on Re^4: inserting array of data into text file

Replies are listed 'Best First'.
Re^5: inserting array of data into text file
by ysth (Canon) on Jul 14, 2004 at 01:26 UTC
    I think people get confused because of the /e being optional if there's just one thing there (e.g. s/(\S+)/$translate{$1}/e; is equivalent to s/(\S+)/$translate{$1}/;).