Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Posting perl code samples

Posting perl code samples

Posting perl code samples

There's been quite a few posts recently where folks have posted perl code as part of their query.  Because postings are treated like HTML, the code ends up as one big paragraph and becomes difficult to read.

The guys at Tek-Tips implemented TGML (Tecumseh Group Markup Language ;^) quite some time ago to help folks get around this problem.

Basically, TGML works like HTML, but instead of "<" and ">" tag markers, you use "[" and "]".  Your tags should not contain spaces after "[" or before "]".  

In the examples below, I've put spaces into the tags that are being displayed so that they will be displayed.  What you won't see if the "proper" tags that are doing the actual markup.

Using [ tt ] and [ /tt ] to post scripts
[ tt ] goes here

@Array = ("Hello", "World");

foreach $item (@Array) {
  print $item, " ";

print "\n";
and [ /tt ] goes here.

Using [ b ] and [ /b ] to make words appear in bold
Just use [ b ]before and [ /b ] after the text to bold.

Anyway, you get the idea.  Off to the right hand side of the page you will see a "Helpful Tips" box.  Click on the [a href="http://www.tek-tips.com/sitehelp.cfm";]See Full List[/a] link for more information on TGML.

0 1 - Just my two bits

RE: Posting perl code samples

There seem to be some problems.  see the post:

how do you read in a html page from another site?

and you will see that there are extra semi colons getting added.  Any one else noticed this?

my test site

RE: Posting perl code samples

jsut testing the bold

RE: Posting perl code samples

I tried being too clever putting in the link to the help page.  I forgot that postings are parsed for www addresses, and a HREF automatically added.  The link to the help page should be http://www.tek-tips.com/sitehelp.cfm

If that doesn't work, look at the right hand side of this page for the "Helpful Tip" box.

Also, rather than reading or pasting in text from another HTML page, it's probably better if you just put a link to the page.  That way, if the page changes, you're posting is still current.

0 1 - Just my two bits

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close