Main > Programming > Libraries >

Tie::Scalar::Sticky 1.06

Tie::Scalar::Sticky 1.06

Sponsored Links

Tie::Scalar::Sticky 1.06 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.003 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 983
Date added: 2007-02-13

Tie::Scalar::Sticky 1.06 description

Tie::Scalar::Sticky is a Perl module with block assignments to scalars.

SYNOPSIS

use strict;
use Tie::Scalar::Sticky;

tie my $sticky, Tie::Scalar::Sticky;

$sticky = 42;
$sticky = ; # still 42
$sticky = undef; # still 42
$sticky = 0; # now its zero

tie my $sticky, Tie::Scalar::Sticky => qw/ foo bar /;

$sticky = 42;
$sticky = foo; # still 42
$sticky = bar; # still 42
$sticky = 0; # now its zero

Scalars tieed to this module will reject any assignments of undef or the empty string or any of the extra arugments provided to tie(). It simply removes the need for you to validate assignments, such as:

$var = $val unless grep $val eq $_, qw(not one of these);

Actually, that is the exact idea used in this module ...
So, why do this? Because i recently had to loop through a list where some items were undefined and the previously defined value should be used instead. In a nutshell:

tie my $sticky, Tie::Scalar::Sticky => 9, string;
for (3,undef,string,2,,1,9,0) {
$sticky = $_;
print $sticky, ;
}

Should print: 3 3 2 2 1 0

Tie::Scalar::Sticky 1.06 Screenshot

Advertisements

Tie::Scalar::Sticky 1.06 Keywords

Bookmark Tie::Scalar::Sticky 1.06

Hyperlink code:
Link for forum:

Tie::Scalar::Sticky 1.06 Copyright

WareSeeker periodically updates pricing and software information of Tie::Scalar::Sticky 1.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Tie::Scalar::Sticky 1.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Set::Scalar Perl module contains a basic set of operations. Free Download
iCal::Parser::HTML is a Perl module to generate HTML calendars from iCalendars. Free Download
Tie::CharArray module can access Perl scalars as arrays of characters. Free Download
Tie::Layers is a Perl module to read and write files pipelined through a stack of subroutine layers. Free Download
Convert::Scalar is a Perl module that can convert between different representations of perl scalars. Free Download
Tie::Hash::Stack is a Perl module which maintains an array of hashes like a stack. Free Download
Scalar::MultiValue is a Perl module to create a SCALAR with multiple values. Free Download
Test::Signature is a Perl module to automate SIGNATURE testing. Free Download