| | |
Description | Compatibility | Level/ Author | Views/ Date Submitted | User Rating |
| |
| |
 |
A Boolean Expression Parser (like search engines, nested brackets), very useful | 5.0 (all versions), Active Perl specific | Intermediate / Ashley Harris | 12282 since 8/1/2002 3:33:59 AM |
By 3 Users 3 Excellent Ratings
|
| |
A boolean parser, like that seen in search engines. able to process expressions like:
animals and ((cats or feline) or (dogs or canine)) and "is cuddly"
Very usefull code.
(vote is appreciated) |
| |
| |
| |
 |
A Replace Function | 5.0 (all versions), Active Perl specific | Intermediate / Randy McCleary | 12756 since 7/12/2003 12:24:28 AM |
By 4 Users
|
| |
This is a simple script that shows how to
create a Replace Subroutine and call it from
a script more easily by supplying 3 parameters
EX: &Replace($FullString, $SearchThis, $ReplaceWithThis); (ScreenShot) |
| |
| |
| |
 |
A simple Base10 to Base2 | 5.0 (all versions) | Beginner / Josh | 10379 since 6/30/2001 5:31:23 AM |
By 3 Users
|
| |
My first post here. Simply converts any Base 10 number to a binary number and at the same time does not show any leading zeros. |
| |
| |
| |
 |
A Split Function | 5.0 (all versions), Active Perl specific | Intermediate / Randy McCleary | 11886 since 7/12/2003 12:28:49 AM |
By 4 Users 2 Excellent Ratings
|
| |
This is a simple script that shows how to make
a simple Split subroutine that can be called
more easy from a script by just supplying 2
parameters. EX: &Split($fullString, $splitString); (ScreenShot) |
| |
| |
| |
 |
An Accurate Word Count of a Basic Text Document | 5.0 (all versions) | Beginner / Bill Platt | 17618 since 1/22/2004 4:42:20 PM |
By 1 Users
|
| |
In my case, I needed to count the number of words in every article on my website. However you use it, this code will permit you to send a text string to a subroutine which will return to you the precise number of words in your string.
The text fed to the ...(description truncated) |
| |
| |
| |
 |
Ascii to Hex - Hex to Ascii | 5.0 (all versions) | Intermediate / John Winger | 119077 since 2/7/2005 9:48:49 AM | Unrated
|
| |
Convert an ascii string to a hexidecimal string and translate a hex string back to ascii. I would not - I repeat NOT - call it encryption, but it can be used to diguise text. For example, in a CGI context, you could use this if you want to pass info on th ...(description truncated) (ScreenShot) |
| |
| |
| |
 |
Centerized a String | 5.0 (all versions) | Intermediate / ram2i | 7996 since 2/19/2002 1:14:31 AM | Unrated
|
| |
type your string and it will be centered. program will determine your terminal size using stty -a command, and calculate the string position on terminal before display it(in center post). (ScreenShot) |
| |
| |
| |
 |
Checking for the existence of substrings (Updated) | Active Perl specific | Beginner / Brandon McPherson | 18727 since 1/29/2001 10:09:29 AM |
By 7 Users 6 Excellent Ratings
|
| |
This is the most basic example of substring searching I could come up with.... and since I'm a VB programmer for the mostpart, simple is good :)<br /><br />
I've only tried this in ActivePerl, so I won't guarantee it works anywhere else without modi ...(description truncated) |
| |
| |
| |
 |
Command-Parameter Destinguisher | 5.0 (all versions) | Beginner / Leonid Grinberg | 6166 since 1/28/2005 11:03:35 PM |
By 1 Users
|
| |
This is a very simple script that allows a program to be able to take in command-parameter like input (for example in a text-based game, 'eat pie' or something like that) find the command (eat) and parameter (pie), and save them to different variables ($c ...(description truncated) |
| |
| |
| |
 |
encrypt/decrypt | 5.0 (all versions), 4.0 (all versions), 3.0 (all versions), Pre 3.0 | Beginner / hypnosses | 8153 since 6/17/2005 12:13:50 AM |
By 1 Users
|
| |
this code takes a string of characters encrypts them into numbers and rearranges them. it also has a function to decrypt the encrypted code :) |
| |