Re: perlfaq6 - stripping C++ style comments from a file
[email protected] (_brian_d_foy) Sun, 24 Apr 2005 17:24:44 -0400
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <240420051724448544%[email protected]> |
[[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <[email protected]>, William F. Mann <[email protected]> wrote: > This FAQ is needlessly obscure, even with Fred Curtis's modifications. > > Nobody needs a version which strips just C style comments. How about > substituting the attached version which does both C and C++ style? Nobody? Not even the C coders? I didn't get any attachment with your message. Can you just put the code in the message? > I think the perl4 version of the code should be omitted, or moved to the > end if you want to make the "perl5 with /x is more legible" point. Perl 4 version? Perhaps you're looking at something else, but all the code in that answer works in Perl 5. -- brian d foy, [email protected]