The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Perl Programming
> Perl FAQs and Stickies
|
New users ::: HOW TO POST A QUESTION - READ THIS FIRST
Discuss New users ::: HOW TO POST A QUESTION - READ THIS FIRST in the Perl FAQs and Stickies forum on Dev Shed. New users ::: HOW TO POST A QUESTION - READ THIS FIRST Here you will find FAQs and Stickies related to common Perl programming questions.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 5th, 2002, 01:49 AM
|
 |
phpkid ~~~~~~ :o)
|
|
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,534
 
Time spent in forums: 11 m 11 sec
Reputation Power: 15
|
|
New users ::: HOW TO POST A QUESTION - READ THIS FIRST
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org
|

August 20th, 2003, 05:27 PM
|
 |
Perl Monkey
|
|
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
|
|
|
Use [code] tags, NOT [php] tags!!
The above thread instructs you to put [php] tags around your code. DO NOT DO THIS FOR PERL CODE! Just use the generic [ code ] tags. It won't be colored, but it will be correct. The php tags tend to destroy Perl code (and likely other languages), especially around escape characters.
Ax brought this up and I figured it was worth a formal mention.
Also, put the tags around indented code, ie, what you should originally be working with. Example, if your post looks like this: Quote: while( <FILE> )
{
if(/^pattern$/)
{
print;
last;
}
} | and someone asks you to put [ code ] tags around it, don't copy what you posted and put tags around it, copy from the original source with all the indentation, and make it look like this:
Code:
while( <FILE> )
{
if(/^pattern$/)
{
print;
last;
}
}
It'll make our lives easier and more willing to help. If you're feeling really industrious, check out Perl::Tidy or its command-line version perltidy.
__________________
Andrew - Perl (and VB.NET) Monkey
Never underestimate the bandwidth of a hatchback full of tapes.
|

May 19th, 2005, 11:32 AM
|
 |
kill 9, $$;
|
|
Join Date: Sep 2001
Location: Shanghai, An tSín
|
|
A new BBCode tag has been added to Dev Shed, in order to make it easier to link to modules on CPAN (without having to look up the URL yourself!). More specifically, it links to the appropriate search on http://search.cpan.org.
For example, to create a link to the HTML::Template module, I'd type:
[cpan=HTML::Template]Comment Text[/cpan]
This would be converted into this:
Comment Text
I've also requested a [perldoc] tag to be added to link to a search for the Perl documentation - watch this thread for updates on that.
|

July 10th, 2005, 07:10 PM
|
 |
kill 9, $$;
|
|
Join Date: Sep 2001
Location: Shanghai, An tSín
|
|
I'm replying rather than editing my post above so that people will notice that something has changed.
The [perldoc] tag has now been added too - it will link to a search for whatever you specify in the tag, for example:
[perldoc=perlretut]Regular Expressions Tutorial[/perldoc]
. . . becomes . . .
Regular Expressions Tutorial
|

August 10th, 2005, 07:27 AM
|
 |
kill 9, $$;
|
|
Join Date: Sep 2001
Location: Shanghai, An tSín
|
|
Further to icrf's post above about using [code] tags, Perl syntax highlighting is now available by using [highlight=perl] ... code in here ... [/highlight] in posts. Here's a demonstration:
perl Code:
Original
- perl Code |
|
|
|
while( <FILE> ) { if(/^pattern$/) { last; } }
Note that this will also add links from all functions to their documentation for folks who need more of an explanation.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|