Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sub-initiate needs help getting started

by williamp (Pilgrim)
on Aug 25, 2003 at 22:48 UTC ( [id://286525]=note: print w/replies, xml ) Need Help??


in reply to Sub-initiate needs help getting started

Hi, Good luck with this project. Once you have a test environment either on your unix box or PC, I would take a copy of the code and start going through it line by line, making LOTS of comments/note as you go. You do not have to become a Perl Geru by October 31st just a geru of your program. To find out how lines or sections work try pulling them out to small test scripts and pass them variables which you feel will test the code. The -w and use strict should be used here as well. Their messages are very useful. Hope this helps,
  • Comment on Re: Sub-initiate needs help getting started

Replies are listed 'Best First'.
Re: Re: Sub-initiate needs help getting started
by shenme (Priest) on Aug 25, 2003 at 23:33 UTC
    That's probably the simplest and most useful advice - try out the bits of code in the small if you have any questions what they do.   Whether in small test jig programs, in the debugger or typed-in on the command line, just try it out.  

    What does .*? mean? Try it with and without the '?'   (pardon the Windows quoting):

    perl -e " printf \"'%s'\n\", join \"', '\", '...tangled web was woven +...'=~m/(.*?w)/ ;" '...tangled w' perl -e " printf \"'%s'\n\", join \"', '\", '...tangled web was woven +...'=~m/(.*w)/ ;" '...tangled web was w'
    And even when you don't understand it, at least you'll know what it did ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://286525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-24 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found