regex to convert 1000000 -> 1,000,000 ?

E

Eric J. Roode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(e-mail address removed) (Sam Holden) wrote in
But that isn't a FAQ. Maybe schools in your part of the world are
different than over here. But over here I've never seen something that
resembles a FAQ, something with a list of questions which are have
actually been asked frequently (or even just once) with answers.

Things like:

* Which teacher is most likely to let me leave early?

* Which areas are best avoided if I don't wish to get in a fight at
lunch?

* Which toilets are the cleanest?

* On which day are the weekly staff meetings that make it easy to
sneak out
at lunch?

* Which computer in the library is fastest?

* How late can I be for roll call?

I got a FAQ (it wasn't called that; the term had not yet been invented)
when I started college. It didn't have such trivia as the above, but it
did have the answers to such questions as:

* What are good local radio stations?

* What are good local restaurants?

* Where are you allowed to park on campus?

* Who are useful administration personnel to know?

* What resources are available to you as a student?

etc.

- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBP7l1z2PeouIeTNHoEQJvzQCgo+Cogh/h09gaiX4BGFhkuAquuwcAnA2E
7FwGMi3JlaEvT9VxYpV/hpO0
=RteQ
-----END PGP SIGNATURE-----
 
T

Trent Curry

Tore said:
Then you are blind. The posting guidelines have been posted in this
newsgroup 13 times since October 3rd this year. The last posting was
on November 14th.

No need to be so rude. They never show up on my server, and I'm
obviously not the only one. They are shown in google groups though. As I
said already, it could be a problem with the outgoing feed from the
server tad uses to post those FAQ posts. I even emptied my kill file and
re-downloaded the last 500 headers and it still does not show. Someone
else had posted that the they have not been able to get those posts
after being through 3 different news servers, so it leads me to believe
it's something with tad's server.

--
Trent Curry

perl -e
'($s=qq/e29716770256864702379602c6275605/)=~s!([0-9a-f]{2})!pack("h2",$1
)!eg;print(reverse("$s")."\n");'
 
S

Sam Holden

Abigail wrote:
[Abigail's Non standard broken quoting fixed;
Btw why do you continue to post like this knowing it breaks many
quoting schemes that readers use, inparticular color coding???]
Wally Sanford ([email protected]) wrote on MMMDCCXXX September
MCMXCIII in URL:

No, if they are Unix savy, they try "man perl", and guess what? On the
second page it mentions the FAQ!

$ man perl | grep -i faq
perlfaq Perl frequently asked questions
perlfaq1 General Questions About Perl
perlfaq2 Obtaining and Learning about Perl
perlfaq3 Programming Tools
perlfaq4 Data Manipulation
perlfaq5 Files and Formats
perlfaq6 Regexes
perlfaq7 Perl Language Issues
perlfaq8 System Interaction
perlfaq9 Networking

It *mentions* perlfaq but says NOTHING of how to *access* it. Thats whe
whole point ehre.

Strangely enough rather than reading randomly selected lines of the man page
the idea is to read the text as you normally would (ie. start at the top
and work your way down). You search to find parts that might be useful
but you don't just read the line that happens to contain the search
term you used. You read the context.

For anyone with more than one brain cell it is *obvious* that the list of
sections you are selecting lines from are individual man pages.

For starters it's a man page, and hence referenced like that would be
expected to be man pages unless labelled otherwise.

Secondly, the first non-parenthical sentence after the list is:

By default, the manpages listed above are installed in the
/usr/local/man/ directory.

Stating that they are "manpages".

Thirdly, two paragraphs down a paragrpah starts with :

You should be able to view Perl's documentation with your man(1) program

Explicitely stating how you can read said manpages.

And so on and so on (those quotes are from my install of perl, it'll be
different for different versions and at different sites).

You have to try pretty hard (by say only reading individual lines with
no context) to not find out how to read the documentation.

Do you read books with this strange select a few lines and only read
them approach?
 
S

Sam Holden

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(e-mail address removed) (Sam Holden) wrote in

[snip "trivia"]
I got a FAQ (it wasn't called that; the term had not yet been invented)
when I started college. It didn't have such trivia as the above, but it
did have the answers to such questions as:

[snip questions]

Ah yes, "your part of the world" comes into play. Schools and colleges
and universities are distinct terms in the local dialect I speak. I agree
that universities usually have very good guides.

Primary and secondary schools over here, seem not to. Well the ones I
attended way back when.
 
T

Tore Aursand

[...]
It *mentions* perlfaq but says NOTHING of how to *access* it. Thats whe
whole point ehre.

Huh? If you are able to type in 'man perl', why shouldn't you be able to
type in 'man perlfaq' (or one of the other manual pages)?

It's not Perl's problem that people don't know how to read documentation
on their OS.
 
T

Trent Curry

Abigail said:
Trent Curry ([email protected]) wrote on MMMDCCXXXI September
MCMXCIII in said:
No need to be so rude. They never show up on my server, and I'm
obviously not the only one. They are shown in google groups
though. As I said already, it could be a problem with the
outgoing feed from the ][ server tad uses to post those FAQ posts.

Clearly, if they show up in Google, Tad *doesn't* have a problem
getting the guidelines out. If the problem was at his server, it
wouldn't reach Google either.

It can still be a problem with his server. It is possible is server is
not propagating correctly. Some servers get it, some don't, obviously.
As already pointed out, I am not the only one not seeing his posts. (And
please stop using non standard quoting, it's not nice to make people do
extra work to fix it.)

--
Trent Curry

perl -e
'($s=qq/e29716770256864702379602c6275605/)=~s!([0-9a-f]{2})!pack("h2",$1
)!eg;print(reverse("$s")."\n");'
 
W

Wally Sanford

Abigail said:
Wally Sanford ([email protected]) wrote on MMMDCCXXXI
September MCMXCIII in
That's explained on the *first* page:

For ease of access, the Perl manual has been split up into
several sections.

after which the list of manual pages, which includes the FAQ, follows.

Assumign the knew person knows of man, yes this is true.

---------- Abigail, about your quoting... ----------

Please don't preach about FAQs and guidelines when you can't even follow
a basic one after being asked thosands of times. Your quoting requires
the need to be fixed to make a post followable by those who actually use
standard quoting. It is a disruption, taking attention to your quoting
instead of the post. Please fix your quoting to use the standard "> ".

Don't be fancy with your quoting please.
 
S

Sam Holden

Assumign the knew person knows of man, yes this is true.

How do you propose perl make the documentation available in such a way
that people who don't know how to read the documentation in the standard way
can still find it?

Mental telepathy or something?
 
E

Eric J. Roode

(e-mail address removed) (Sam Holden) wrote in
How do you propose perl make the documentation available in such a way
that people who don't know how to read the documentation in the
standard way can still find it?

Mental telepathy or something?

Usenet! ;-)
 
U

Uri Guttman

SH> On Tue, 18 Nov 2003 16:57:32 -0800,

SH> How do you propose perl make the documentation available in such a way
SH> that people who don't know how to read the documentation in the standard way
SH> can still find it?

SH> Mental telepathy or something?

have you forgotten about the PSI::ESP module on cpan? just have the
newbies use that before they learn any perl and they will instantly know
how to find and read all the docs in any format. hell, in any language
since they will be able to read the minds of perl hackers from around
the world.

as for sanford and this thread, drop both already. he has no clue about
bootstrapping docs nor teaching.

uri
 
T

Tad McClellan

Uri Guttman said:
SH> On Tue, 18 Nov 2003 16:57:32 -0800,


SH> How do you propose perl make the documentation available in such a way
SH> that people who don't know how to read the documentation in the standard way
SH> can still find it?

SH> Mental telepathy or something?

have you forgotten about the PSI::ESP module on cpan? just have the
newbies use that before they learn any perl and they will instantly know
how to find and read all the docs in any format.


Assumign (sic) the knew (sic) person knows of PSI::ESP, yes this is true.



Rather than installing perldoc, a proper install should insert
multiple brain cells and interconnect them.
 
U

Uri Guttman

SH> On Tue, 18 Nov 2003 16:57:32 -0800,
SH> How do you propose perl make the documentation available in such a way
SH> that people who don't know how to read the documentation in the standard way
SH> can still find it?
TM> Assumign (sic) the knew (sic) person knows of PSI::ESP, yes this is true.

balderdash! proper use of PSI::ESP doesn't require knowing about the
module. the module should properly detect those who need to use it and
self install. if it doesn't, that means either the module or the person
has a major bug and should be reported to their maintainer.

uri
 
B

Bart Lateur

Sam said:
How do you propose perl make the documentation available in such a way
that people who don't know how to read the documentation in the standard way
can still find it?

A readme file that comes with perl, which points towards perldoc?

Indigiperl comes with a reradme.txt file which contains:

README FILE FOR INDIGOPERL

All documentation is contained in html/index.html

That's enough.
 
S

Sam Holden

A readme file that comes with perl, which points towards perldoc?

Indigiperl comes with a reradme.txt file which contains:

README FILE FOR INDIGOPERL

All documentation is contained in html/index.html

That's enough.

And since the perl source comes with a README file containing:

2) Read the manual entries before running perl.

So that's enough.
 
T

Tad McClellan

Pinocchio said:


Yet another alias?

It must be getting crowded in there...

why some newbies seem to
give blank stairs


Yesterday upon the stair
I met a man who wasn't there.
He wasn't there again today
Oh how I wish he'd go away.
-- Hughes Mearns (1875-1965)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top