(resending)
 
Hi all,

I recently took upon myself to write a small piece of code (after not having 
used Perl for 3 years), and found it reasonably straightforward - replacing 
strings in files using user input.

Got the syntax for "#!" and "!~" wrong, had to read the man pages for the file 
open tutorial (quick) and the easy introduction to regular expressions, and 
check the syntax of if-then-else, and use perldoc to find out how one tests for 
file existence and readability etc..

Wasn't satisfied with my file reading loop (while (<$in1>) {) - I remember 
having done something more sophisticated back in the day.

Also, my email validation was very rudimentary (if ($ARGV[0] !~ 
/\w+\....@\w+\.\w+/))- i tried to find an existing, generic RE, but the 
Internet yielded some scary (and non plug-and-play) results.

However, I was able to get the job done relatively quickly - Perl obviously 
stays with one. :)


Cheers,
Srikanth Madani, long-time lurker


      
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to