Hardware?

2011-08-04 Thread sb
The simpliest questions don't seem to have readily available answers: I need a hardware recommendation! I use Perl on my own machine to assemble HTML files (no networking stuff). My current machine is a Mac running OSX Tiger. The MacOS doesn't seem friendly to Perl, so I want to change to s

stopping global substituion under MACOSX

2012-02-21 Thread sb
I'm running PERL under the MACOSX. The line $text=~s/george/tim/; causes a global substituion of "george" with "tim" How can I limit the substituion to the first instance only? Thanks! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...

Re: stopping global substituion under MACOSX

2012-02-22 Thread sb
y serious Perl programmer should know. Agreed File::Slurp will be faster and better as Uri mentioned. You could check *perldoc perlvar* for more information. We don't know if the original poster was applying the substitution to an entire file or to each line in a file. We don&#

Delete first line when blank

2014-03-07 Thread sb
I have some text files from which I would like to remove the first line, but only if it's blank. Any hints? I tried a few things, but the results haven't quite been satisfactory. Thanks! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h