FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-17-2000, 02:28 PM   Postid: 20922
brendag4
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Apr 2000
Location: USA
Posts: 125
removing perl comments

Does anyone know of a utility to remove comments from Perl code?

Thanks :-)

Brenda
brendag4 is offline   Reply With Quote
Old 07-17-2000, 02:34 PM   Postid: 20923
Dan Kaplan
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Oct 1999
Location: Salem, Oregon
Posts: 1,416
Yeah, find and manual replace.  

Dlete
Dan Kaplan is offline   Reply With Quote
Old 07-17-2000, 07:49 PM   Postid: 20924
Stephen
Site Owner
 
Stephen's Avatar

Forum Notability:
89 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Feb 1999
Location: L.A.
Posts: 671
i think you might find that any utility that strips comments in perl requires you to code according to certain rules. otherwise how do you unambiguously determine that a # isn't part of a string that is a piece of your code?

so some thinking generally has to go on before you start stripping out everything on a line that follows a #. otherwise that formerly-working code could quickly become uncompilable.
 
------------------
Stephen Carter, Random Mouse Software
Solving the Customer Review Management Problem
U R L:  www.randommouse.com
Stephen is offline   Reply With Quote
Old 07-18-2000, 01:09 AM   Postid: 20925
sumengen
Visitor
 
sumengen's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Mar 2000
Posts: 127
Perl compiler itself is doing a pretty good job for stripping out the comments
------------------

[This message has been edited by sumengen (edited 07-18-00@01:09 am)]
sumengen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:32 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.