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
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...
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
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