-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jun 17, 2006, at 7:45 PM, Charilaos Skiadas wrote:
- Change $fileName = ENV['TM_SELECTED_TEXT'] to $fileName =
STDIN.read
That did it!
Do I understand correctly that up to the "puts line" part, your method just separates the string into an array of each of its lines? In that case, you could simply do:
I didn't want to load up the entire file into an E-mail. There are several other methods that I left out.
Btw, any particular reason you create these global variables, $fileName etc? You could probably just work with local variables.
It made sense when I started, not sure if I still need the globals, but it works now.
Thanks for all the help!
Mike