in reply to Re: Read from and write to file
in thread Read from and write to file

Thanks very much for the suggestions, wojtyk.

You're totally right about using split more efficiently. As for Tie::File, I'll be looking into that. I'm not too sure about using the \i option for regular expressions, as I want to ensure that the information entered gets saved as all lowercase, even if entered as e.g., "John" or "JOHN".

Thanks again! :-)

Replies are listed 'Best First'.
Re^3: Read from and write to file
by TStanley (Canon) on Apr 05, 2007 at 22:33 UTC
    That is what the lc command is for

    TStanley
    --------
    War is an ugly thing, but not the ugliest of things. The decayed and degraded state of moral and patriotic feeling which thinks that “nothing is worth war” is much worse. The person who has nothing for which he is willing to fight, nothing which is more important than his own personal safety, is a miserable creature and has no chance of being free unless made and kept so by the exertions of better men than himself. -- John Stuart Mill
      Ahh, that's so useful!

      I've already learnt at least 3 new things just by posting. Thanks a ton! :-)