in reply to Re: No grokkage on regex search/replace
in thread No grokkage on regex search/replace

Also, I really do think you're doing yourself a disservice by not picking up a copy of the Llama book, "Learning Perl." That is the introductory course of choice. It just seems like your code has a lot of non-perlish nuggets. For example, what is your initargs() subroutine supposed to be doing? And why is it passing variables around through osmosis instead of through proper parameter lists and return values?

Thanks for the pointers! Very useful indeed! As to the points that I was "ignoring" from other quite useful posts...for some points and concepts (though I decline to go into specifics here, more in the interest of brevity than any sense of peevishness that I don't in fact harbor. and though you'd have no way of knowing this was merely because of the extremely early stages of this script) I was in fact purposefully doing so in the interests of getting a script off the ground when I was really shooting to get a tighter grip regexing. Whenever learning a new language, sometimes a blank vi terminal looms like a blank canvas for even the simplest tasks.

I'm a not terrible (though certainly not museum quality...maybe in my old age...) artist some of the time. Picking up a piece of chalk or a paintbrush to a blank sheet of paper or taking a knife to a bit of clay is a minor act of courage. I'm sure that feeling doesn't go away once you've deveoped great facility with a language and you have an ambitious project. But for these "baby steps" I'm taking here publicly on the web even something minor as "reverse a phrase" is a head-scratcher.

Thanks for the reminder about the "reverse" function, by the by. For some reason that one slipped my mind! But I was finally convinced of the sisyphean nature of my struggles when I tried to "use strict;" as everyone here had been screaming at the top of their lungs (advisedly so, it would seem! huh! go figure! trust the monks!) for me to do and I couldn't even assign a variable in such a way that it would compile! "Oh shit!": says I. Not allowing myself to say (perhaps more appropriately) "whoa is me" and ordered the llama book quicker than you could say get thee to a nunnery!" Even ordered it for same day delivery (as I very luckily work in the center of the whole damnable universe! ;) but sadly it failed to arrive in time for me to start absorbing (devouring? might actually be a better word?) during my hour+ train commute home. It'll be there tomorrow (godwilling) so I can start...again...from.........SCRATCH!!!!! AAAARRRRGH!!!!! DAMN YOU LAURA LEMAY!!! YOU WANTON TROLLOP!!!...you...IMPUDENT STRUMPET!!!...harumph...grumble...

Seriously, though I bear no will of personal ill tidings towards the woman Laura Lemay herself, if Sams is still publishing that book they should stop. Immediately. It's about the same vintage as the Llama book. And if I'm more than half way through it and I have yet to see word one about the use of strict off to the dustbin it goes! I've always had the best of luck with O'Reilly. If I weren't already having my head examined, I'd say "I should have my head examined" for looking anywhere else! pheh!
  • Comment on Okay! Okay! You Talked Me Into It!!! :)