in reply to perl typecasting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl typecasting
by perl_junkie (Acolyte) on Feb 05, 2008 at 00:21 UTC | |
| [reply] [d/l] |
by TGI (Parson) on Feb 05, 2008 at 03:11 UTC | |
I carefully read your code and made a few tweaks to it. You are making a good start. Read and reread the docs, ask questions and keep working at it. I strongly recommend that you take the time to understand regexes. They are a very, very, useful and powerful tool. I noticed some problems with your code as I read it. For loops in perl are usually done as follows:
Here's your code with my tweaks applied. What follows is untested, but should work.
| [reply] [d/l] [select] |
by perl_junkie (Acolyte) on Feb 05, 2008 at 18:13 UTC | |
I am working on my regex skills now. I should get better at it in the coming weeks. The variables I have not defined are globals.. sorry I should have mentioned that... Your code looks much cleaner and easier to debug than mine...!!!! Thanks a lot...!!!!! I have got a lot of people telling me about using the modules. Can anyone give me info on how I can check this. Everytime I use this, I get this error message. "Can't locate Regexp/Common.pm in @INC (@INC contains: /etrade/pkgs/perl/5.8.0_crm/lib/perl5 /etrade/pkgs/perl/5.8.0_crm/lib/perl5/site_perl /etrade/pkgs/perl/5.8.0_crm/lib/site_perl /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at dm.pl line 3." | [reply] |
by TGI (Parson) on Feb 05, 2008 at 20:25 UTC | |
by Anonymous Monk on Feb 24, 2012 at 19:31 UTC | |