in reply to Re: ead a file which has three columns and store the content in a hash
in thread ead a file which has three columns and store the content in a hash

`cat file` is maybe slower, maybe not good style, but gives you list of lines from without having to bohter about open, close and so on.

It also doesn't catch any errors that might happen, may have issues regarding encoding, and isn't portable. And with variables interpolated into the backticks, it becomes a security risk. So yes, it's not good style. Path::Tiny is definitely the better solution.

  • Comment on Re^2: ead a file which has three columns and store the content in a hash