Don't ask to ask, just ask | |
PerlMonks |
Re^2: RFC: Proposed tutorial - simple login script using CGI::Applicationby scorpio17 (Canon) |
on Jun 19, 2007 at 21:18 UTC ( [id://622106]=note: print w/replies, xml ) | Need Help?? |
Eric256,
My intent, for those who actually want to run the script, was for you to download the files, then run the provided perl one-liner to strip the numbers out. For example, you could download Simple.pm, then run this:
perl -p -i.orig -e 's/^=\s+\d+\s+= //' Simple.pm And you'll have a working copy of Simple.pm (no line numbers) and a backup called Simple.pm.orig (line numbers included) that you can use to follow along with the tutorial. I'm guessing your editor numbers each file starting at line 1. This makes perfect sense, but if I numbered the listings that way it would get confusing because of the overlap (i.e., 7 listings => 7 line number 1's, etc.). I concatenated all the files together, then ran a script to prepend the numbers, so that each line would have a unique identifier. But I'm open to suggestions - if there's a better way to do it, I'm willing to give it a try. I'll wait a few days and see what other people suggest/recommend. Thanks for the feedback.
In Section
Meditations
|
|