Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.181.320 Times

Hey::Common 0.01

Company: Dusty Wilson
Date Added: August 22, 2013  |  Visits: 459

Hey::Common

Report Broken Link
Printer Friendly Version


Product Homepage
Download (34 downloads)



Hey::Common is a Perl module with common functions used in other Hey::* modules.<br /><br />SYNOPSIS<br /><br /> use Hey::Common;<br /> my $common = Hey::Common->new;<br /> <br /> my $money = $common->formatMoney(524.4); # will return string "524.40"<br /><br />new<br /><br /> my $common = Hey::Common->new;<br /><br />This function provides access to all of these following methods.<br /><br />forceArray<br /><br /> $data->{users} = $common->forceArray($data->{users});<br /><br />The input can either be an array ref or non-array ref. The output will either be that same array ref, or the non-array ref as the only item in an array as a ref.<br /><br />This is useful for items that might or might not be an array ref, but you are expecting an array ref.<br /><br />randomCode<br /><br /> $someRandomCode = $common->randomCode($lengthOfCodeRequested, $keyStringOfPermittedCharacters);<br /><br /> $someRandomCode = $common->randomCode(); # defaults for length and key<br /> $someRandomCode = $common->randomCode(8); # choose a specific length, but default key<br /> $someRandomCode = $common->randomCode(12, 'abcdefg'); # choose a specific length and key<br /><br />$lengthOfCodeRequested defaults to 16.<br /><br />$keyStringOfPermittedCharacters defaults to 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'.<br /><br />deepCopy<br /><br /> my $newCopyOfSomeHashRef = $common->deepCopy($someHashRef);<br /><br />It makes a copy of a reference instead of making a reference to it. There's some usefulness there.<br /><br />isAffirmative<br /><br /> if ($common->isAffirmative('y')) {<br /> print "'y' is affirmative, so you'll see this.";<br /> }<br /> <br /> if ($common->isAffirmative('no')) {<br /> print "'no' is not affirmative, so you won't see this";<br /> }<br /><br />This checks to see if the value is affirmative.<br /><br />Things that are affirmative are: 'y', 'yes', 't', 'true', or any true numerical value.<br />isNegative<br /><br /> if ($common->isNegative('y')) {<br /> print "'y' is not negative, so you won't see this.";<br /> }<br /> <br /> if ($common->isNegative('no')) {<br /> print "'no' is negative, so you'll see this";<br /> }<br /><br />This checks to see if the value is negative.<br /><br />Things that are negative are: 'n', 'no', 'f', 'false', any false numerical value (zero), or undef/null.<br /><br />smtpClient<br /><br /> my @aListOfRecipientEmailAddresses = ('george@somewhere.com', 'ed@server.com', 'ralph@elsewhere.com');<br /><br /> my $contentOfEmailIncludingHeader = 'smtp.server.someplace.com',<br /> From => 'fred@someplace.com',<br /> To => @aListOfRecipientEmailAddresses,<br /> Content => $contentOfEmailIncludingHeader });<br /><br />'Host' is optional and defaults to 'localhost'. Of course, you would need to be able to send email through whatever host you specify.<br /><br />'From' is a single email address that is used as the envelope address.<br /><br />'To' can be a single email address or a list of email addresses as a scalar or an array ref.<br /><br />'Content' is the content of the email, with header and body included.<br /><br />formatMoney<br /><br /> my $money = 515.3;<br /> $money = $common->formatMoney($money);<br /><br />$money is the non-formatted money amount. It will be returned as a formatted string, but with no currency symbol.<br /><br />sha1<br /><br /> my $something = 'This is something that will be hashed.';<br /> my $sha1Hash = $common->sha1($something);<br /><br />$something is any value that you want hashed. It can be a binary value or a simple scalar.<br /><br />$sha1Hash is a simple sha1 hex of whatever you passed in.<br /><br />Requirements:<br /><br />?*A* Perl<br />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Address Affirmative Array Checks Choose Common Defaults Email Formatmoney Isaffirmative Isnegative Length Money Negative Print Quot Randomcode Reference Single Somerandomcode Specific Thisquot
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


HEY::COMMON RELATED
E-Mail Collectors  -  Email Verifier for Mac 1.0
Email Verifier is a web based email verification tool for email address verification services at affordable prices. Our email verifier service will help you clean your mailing list by validating each email you upload and verify email. Our 12...
360 KB  
Libraries  -  Mail::RFC822::Address 0.3
Mail::RFC822::Address is a Perl extension for validating email addresses according to RFC822. SYNOPSIS use Mail::RFC822::Address qw(valid validlist); if (valid("pdw@ex-parrot.com")) { print "Thats a valid addressn"; } if...
5.12 KB  
Modules  -  Multiple Email Addresses 5.x-1.x-dev 1.0
Only one email address is considered to be the "primary" email address, and will continue to behave as normal. Non-primary accounts are mostly functionally meaningless, except that during user registration any email address registered to a user...
 
Contact Management Tools  -  DYMO Address Fixer 3.1
DYMO's free and amazing new Address Fixer automatically checks any US address against the USPS master database while you're connected to the internet! Mistakes are automatically corrected, the ZIP+4 is added, and formatting is adjusted to Post...
953 KB  
Mail Clients  -  NK2Edit x64 1.96
Every time that you type an email address or name in the message window of MS-Outlook, it automatically offer you a list of users and email address that you can choose. This feature is known as 'AutoComplete' and Outlook automatically build this...
 
Mail Clients  -  Portable NK2Edit 1.96
Every time that you type an email address or name in the message window of MS-Outlook, it automatically offer you a list of users and email address that you can choose. This feature is known as 'AutoComplete' and Outlook automatically build this...
 
Mail Clients  -  NK2Edit 1.70
Every time that you type an email address or name in the message window of MS-Outlook, it automatically offer you a list of users and email address that you can choose. This feature is known as 'AutoComplete' and Outlook automatically build this...
 
Web Searching Tools  -  SEOSmart Future PR 1.5
SEOSmart Future PR checks 94 Google data centers to obtain your Web site's Google PageRank with a single click. The new SEO tool is completely free to use, and returns all 94 results in a matter of seconds thanks to the use of multiple threads to...
464.79 KB  
Miscellaneous  -  min/max "peaks" with Numeric 1.0
Given a large one-dimensional array, this script breaks it into blocks of contstant length and compute min and max for each block, the so-called "peaks data".
 
Modules  -  Taxonomy Widget for Drupal 5.x-1.3
Implements a new form element named taxonomy_widget for selecting a vocabulary and then a term within that vocabulary. The term list is dynamically populated by jQuery when a vocabulary is selected.The element takes an array for the #default_value...
10 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, UTILITIES
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Utilities  -  Nessconnect 1.0.2
Nessconnect is a GUI, CLI and API client for Nessus and Nessus compatible servers. With an improved user interface, it provides local session management, scan templates, report generation through XSLT, charts and graphs, and vulnerability trending.
819.2 KB  
Utilities  -  Dynamic Power Management 2.6.16
The Dynamic Power Management (DPM) project explores technologies to improve power conservation capabilities of platforms based on open source software. Of particular interest are techniques applicable to running systems, adjusting power parameters...
30.72 KB  
Utilities  -  Ethernet bridge tables 2.4.37.9
Ethernet bridge tables - Linux Ethernet filter for the Linux bridge. The 2.4-ebtables-brnf package contains the ebtables+bridge-nf patch. Be sure to check out the ebtables hp. This site also contains the arptables userspace tool.
40.96 KB  
Utilities  -  SaraB 1.0.0
SaraB works with DAR (Disk ARchive) to schedule and rotate backups on random-access media (i.e. hard drives, CDs, DVDs, Zip, etc. Basically anything except magnetic tapes.) This reduces hassle for the administrator by providing an automatic backup...
20.48 KB  
Utilities  -  Command Not Found 0.2.41
Command Not Found is a program that uses a cache of existing programs and their associated packages to aid users in their day-to-day command-line work. Usage: command-not-found [options] Options: ...
30.72 KB