stdin
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 163
Text::PromptBalanced 0.02
Text::PromptBalanced aid in creating CLI prompts that keep track of balanced text. more>>
Text::PromptBalanced aid in creating CLI prompts that keep track of balanced text.
SYNOPSIS
use Text::PromptBalanced qw(balance_factory);
($state,$balance) = balance_factory(
string => { type => toggle, open => " },
paren => {
type => balanced, open => (, close => ), ignore_in => string },
comment => { type => eol, open => ;, ignore_in => string },
escape => { type => escape, open => }
);
while(< STDIN >) {
my $cur_balance = $balance->($_);
if($state->{string}==1) { print q["> ] }
elsif($state->{paren} > 0) { print qq[($cur_balance> ] }
elsif($cur_balance < 0)
{ warn "Unbalanced paren at character $cur_balance" }
else { print q[0> ] }
}
<<lessSYNOPSIS
use Text::PromptBalanced qw(balance_factory);
($state,$balance) = balance_factory(
string => { type => toggle, open => " },
paren => {
type => balanced, open => (, close => ), ignore_in => string },
comment => { type => eol, open => ;, ignore_in => string },
escape => { type => escape, open => }
);
while(< STDIN >) {
my $cur_balance = $balance->($_);
if($state->{string}==1) { print q["> ] }
elsif($state->{paren} > 0) { print qq[($cur_balance> ] }
elsif($cur_balance < 0)
{ warn "Unbalanced paren at character $cur_balance" }
else { print q[0> ] }
}
Download (0.006MB)
Added: 2007-08-22 License: Perl Artistic License Price:
797 downloads
dicelab 0.4
dicelab allows you to express complex dice rolling schemes in a functional language and then roll dice. more>>
dicelab allows you to express complex dice rolling schemes in a functional language and then roll dice according to such a scheme or analyze the statistic distribution of values.
It is useful when designing games (and to some degree when playing them).
Usage: dicelab [options] [-f < file >]
Options:
--help -h -? print this text
--version -v print the program version
--print-tree -p print the parse tree (for debugging)
--eval -e evaluate the statistical distribution by
re-rollingp
--count -c specify the number of rolls used with --eval
default is 10000
--roll -r roll the dice as specified, will also be used
if no other action is requested
File:
--file -f read the dice rolling specs from the file
specified, use stdin if not supplied
Enhancements:
- The program is much faster now.
<<lessIt is useful when designing games (and to some degree when playing them).
Usage: dicelab [options] [-f < file >]
Options:
--help -h -? print this text
--version -v print the program version
--print-tree -p print the parse tree (for debugging)
--eval -e evaluate the statistical distribution by
re-rollingp
--count -c specify the number of rolls used with --eval
default is 10000
--roll -r roll the dice as specified, will also be used
if no other action is requested
File:
--file -f read the dice rolling specs from the file
specified, use stdin if not supplied
Enhancements:
- The program is much faster now.
Download (0.13MB)
Added: 2007-08-21 License: GPL (GNU General Public License) Price:
794 downloads
Fetch and deliver mail 1.3
Fetch and deliver mail is a simple, lightweight replacement for mail fetching, filtering, and delivery programs. more>>
Fetch and deliver mail is a simple, lightweight replacement for mail fetching, filtering, and delivery programs such as fetchmail and procmail.
It can fetch using POP3, POP3S, IMAP, IMAPS, or stdin, and deliver to a pipe, file, maildir, mbox, or SMTP server, based on a set of regexps.
Fetch and deliver mail can be used for both single user and multiuser setups, and is designed with privilege separation when running as root.
Enhancements:
- Mostly configuration file enhancements and code cleanup were done since 1.2. ifdef/endif blocks and inline shell commands are allowed in the configuration file.
- A built-in string cache using TDB was added.
- Some extra default tags were added. NNTPS fetching was implemented.
<<lessIt can fetch using POP3, POP3S, IMAP, IMAPS, or stdin, and deliver to a pipe, file, maildir, mbox, or SMTP server, based on a set of regexps.
Fetch and deliver mail can be used for both single user and multiuser setups, and is designed with privilege separation when running as root.
Enhancements:
- Mostly configuration file enhancements and code cleanup were done since 1.2. ifdef/endif blocks and inline shell commands are allowed in the configuration file.
- A built-in string cache using TDB was added.
- Some extra default tags were added. NNTPS fetching was implemented.
Download (0.040MB)
Added: 2007-07-31 License: BSD License Price:
816 downloads
proxytunnel 1.7.2.161
This is proxytunnel, a program that connects stdin and stdout to an origin server through HTTPS proxy. more>>
This is proxytunnel, a program that connects stdin and stdout to an origin server through HTTPS proxy.
Short guide to installing proxytunnel
On most modern unix systems, use the normal Makefile
On MAC OS X, use Makefile.darwin
If you dont have gnu-getopts, use Makefile.no-gnu-getopts
If you want to enable setproctitle functionality, add a CFLAGS define -DSETPROCTITLE (uncomment sample in Makefile)
Run make and optionally make install.
If you manually want to install, copy proxytunnel to /usr/local/bin and optionally the manual-page from the debian-subdirectory to your manpath.
Enhancements:
- Fixed buffer/malloc issue
- Clean-up usage info/help text
- Remove spurious syslog
- Added build-number to versionstring
<<lessShort guide to installing proxytunnel
On most modern unix systems, use the normal Makefile
On MAC OS X, use Makefile.darwin
If you dont have gnu-getopts, use Makefile.no-gnu-getopts
If you want to enable setproctitle functionality, add a CFLAGS define -DSETPROCTITLE (uncomment sample in Makefile)
Run make and optionally make install.
If you manually want to install, copy proxytunnel to /usr/local/bin and optionally the manual-page from the debian-subdirectory to your manpath.
Enhancements:
- Fixed buffer/malloc issue
- Clean-up usage info/help text
- Remove spurious syslog
- Added build-number to versionstring
Download (0.042MB)
Added: 2007-07-30 License: GPL (GNU General Public License) Price:
504 downloads
Pod::PXML 0.12
Pod::PXML is a Perl module that contains pxml2pod and pod2pxml. more>>
Pod::PXML is a Perl module that contains pxml2pod and pod2pxml.
SYNOPSIS
use Pod::PXML;
# Take from a file...
open(XMLOUT, ">foo.xml") || die "cant wropen foo.xml: $!";
binmode(XMLOUT);
print XMLOUT Pod::PXML::pod2xml(foo.pod);
close(XMLOUT);
# Take from a file, going the other way:
open(PODOUT, ">foo.pod") || die "cant wropen foo.pod: $!";
binmode(PODOUT);
print PODOUT Pod::PXML::xml2pod(foo.xml);
close(PODOUT);
# Or take from STDIN:
print , Pod::PXML::pod2xml(join , );
# Or the other way;
print , Pod::PXML::xml2pod(join , );
Perls documention is conventionally expressed in Plain Old Documentation.
POD-format is a wonderfully concise text format, but it is quite idiosyncratic. This module seeks to make it easier to turn text thats in POD-format into XML, and to turn text thats in XML into POD-format.
<<lessSYNOPSIS
use Pod::PXML;
# Take from a file...
open(XMLOUT, ">foo.xml") || die "cant wropen foo.xml: $!";
binmode(XMLOUT);
print XMLOUT Pod::PXML::pod2xml(foo.pod);
close(XMLOUT);
# Take from a file, going the other way:
open(PODOUT, ">foo.pod") || die "cant wropen foo.pod: $!";
binmode(PODOUT);
print PODOUT Pod::PXML::xml2pod(foo.xml);
close(PODOUT);
# Or take from STDIN:
print , Pod::PXML::pod2xml(join , );
# Or the other way;
print , Pod::PXML::xml2pod(join , );
Perls documention is conventionally expressed in Plain Old Documentation.
POD-format is a wonderfully concise text format, but it is quite idiosyncratic. This module seeks to make it easier to turn text thats in POD-format into XML, and to turn text thats in XML into POD-format.
Download (0.012MB)
Added: 2007-07-08 License: Perl Artistic License Price:
838 downloads
Prostat 1.3
Prostat software is a statistic tool for Squid. more>>
Prostat software is a statistic tool for Squid.
HOWTO
Archive prostat_1.3.tar.gz contains very little documentation so heres the extra short manual for how to use prostat:
1. install prostat package
2. make your own copy of /usr/local/prostat/prostat.conf and edit it as you want (or edit directly /usr/local/prostat/prostat.conf)
3. run
prostat +g
(or just prostat in case you do not make copy of prostat.conf)
Example:
cat /var/log/squid/access.log.0 | prostat +g/usr/local/prostat/myconf.conf -
this produces statistic for entries in rotated log using options stored in /usr/local/prostat/myconf.conf file (option LOGFILE is ignored while prostat (in this example) is taking log data from stdin)
Note: do not insert space after +g option
Tips:
- use prostat and crontab to generate statistic automaticly as often as you want
- look at analhead.h in source prostat_1.3.tar.gz archive for some information about command-line options
<<lessHOWTO
Archive prostat_1.3.tar.gz contains very little documentation so heres the extra short manual for how to use prostat:
1. install prostat package
2. make your own copy of /usr/local/prostat/prostat.conf and edit it as you want (or edit directly /usr/local/prostat/prostat.conf)
3. run
prostat +g
(or just prostat in case you do not make copy of prostat.conf)
Example:
cat /var/log/squid/access.log.0 | prostat +g/usr/local/prostat/myconf.conf -
this produces statistic for entries in rotated log using options stored in /usr/local/prostat/myconf.conf file (option LOGFILE is ignored while prostat (in this example) is taking log data from stdin)
Note: do not insert space after +g option
Tips:
- use prostat and crontab to generate statistic automaticly as often as you want
- look at analhead.h in source prostat_1.3.tar.gz archive for some information about command-line options
Download (0.046MB)
Added: 2007-06-21 License: GPL (GNU General Public License) Price:
856 downloads
Randomize Lines 0.2.6
Randomize Lines (rl) is a command-line tool that reads lines from an input file or stdin. more>>
Randomize Lines (rl) is a command-line tool that reads lines from an input file or stdin, randomizes the lines and outputs a specified number of lines. It does this with only a single pass over the input while trying to use as little memory as possible.
I wrote rl in my spare time mainly to be able to select a random audio file to play when my toast is done (script in combination with find and sleep). Another reason was to familiarize myself with autoconf and friends.
The most recent version of this page can be found at http://ch.tudelft.nl/~arthur/rl/.
Warning: rl is software in development. The command line options and default behavior may change between releases.
Another Warning: I have mostly lost interest in this project and am not planning on doing much development on it any more. I will however still accept patches and fix important bugs (this more or less contradicts the previous warning).
Enhancements:
- A dangerous example was removed from the manual page and was replaced by several benign ones.
<<lessI wrote rl in my spare time mainly to be able to select a random audio file to play when my toast is done (script in combination with find and sleep). Another reason was to familiarize myself with autoconf and friends.
The most recent version of this page can be found at http://ch.tudelft.nl/~arthur/rl/.
Warning: rl is software in development. The command line options and default behavior may change between releases.
Another Warning: I have mostly lost interest in this project and am not planning on doing much development on it any more. I will however still accept patches and fix important bugs (this more or less contradicts the previous warning).
Enhancements:
- A dangerous example was removed from the manual page and was replaced by several benign ones.
Download (0.12MB)
Added: 2007-06-15 License: GPL (GNU General Public License) Price:
861 downloads
WWW::Facebook::API 0.3.3
WWW::Facebook::API is a Facebook API implementation. more>>
WWW::Facebook::API is a Facebook API implementation.
SYNOPSIS
use WWW::Facebook::API;
my $client = WWW::Facebook::API->new(
desktop => 1,
throw_errors => 1,
parse => 1,
);
print "Enter your public API key: ";
chomp( my $val = < STDIN > );
$client->api_key($val);
print "Enter your API secret: ";
chomp($val = < STDIN > );
$client->secret($val);
print "Enter your e-mail address: ";
chomp(my $email = < STDIN > );
$client->secret($val);
print "Enter your password: ";
chomp(my $pass = < STDIN > );
my $token = $client->auth->login( email => $email, pass => $pass );
$client->auth->get_session( $token );
use Data::Dumper;
my $friends_perl = $client->friends->get;
print Dumper $friends_perl;
my $notifications_perl = $client->notifications->get;
print Dumper $notifications_perl;
# Current users quotes
my $quotes_perl = $client->users->get_info(
uids => $friends_perl,
fields => [quotes]
);
print Dumper $quotes_perl;
$client->auth->logout;
A Perl implementation of the Facebook API, working off of the canonical Java and PHP implementations. By default it uses JSON::Any to parse the response returned by Facebooks server. There is an option to return the raw response in either XML or JSON (See the parse method below).
<<lessSYNOPSIS
use WWW::Facebook::API;
my $client = WWW::Facebook::API->new(
desktop => 1,
throw_errors => 1,
parse => 1,
);
print "Enter your public API key: ";
chomp( my $val = < STDIN > );
$client->api_key($val);
print "Enter your API secret: ";
chomp($val = < STDIN > );
$client->secret($val);
print "Enter your e-mail address: ";
chomp(my $email = < STDIN > );
$client->secret($val);
print "Enter your password: ";
chomp(my $pass = < STDIN > );
my $token = $client->auth->login( email => $email, pass => $pass );
$client->auth->get_session( $token );
use Data::Dumper;
my $friends_perl = $client->friends->get;
print Dumper $friends_perl;
my $notifications_perl = $client->notifications->get;
print Dumper $notifications_perl;
# Current users quotes
my $quotes_perl = $client->users->get_info(
uids => $friends_perl,
fields => [quotes]
);
print Dumper $quotes_perl;
$client->auth->logout;
A Perl implementation of the Facebook API, working off of the canonical Java and PHP implementations. By default it uses JSON::Any to parse the response returned by Facebooks server. There is an option to return the raw response in either XML or JSON (See the parse method below).
Download (0.022MB)
Added: 2007-06-14 License: Perl Artistic License Price:
868 downloads
KMail Power Tools 0.3
KMail Power Tools is meant to be a suite of enhancements to KMail and may be other mail user agents. more>>
KMail Power Tools is meant to be a suite of enhancements to KMail and may be other mail user agents.
It is currently composed of only one (perl) script that acts as a filter (take input from stdin, outputs the modified mail to stdout), adds dialog boxes to kmail, and allows the user to:
- remove all attachments from an email (no user interaction),
- remove selectively attachments, after asking the user,
detach (i.e. save then remove) any attachment to a directory chosen by the user,
- hence reducing the size of your mailbox, while allowing you to backup important attached files.
All these actions are logged within a sentence in the mail body (see below).
Note: removing and detaching is already supported by Thunderbird, but my favourite mailer program is KMail, then...
How it works
KMail allows the definition of filters (like any other email program), but you can define filters:
- which are launched manually,
- which can be programs reading your email on stdin and outputing the result on stdout (or "pipe through").
So I had the idea to use this in order to enhance KMail, and allow it to remove and detach attachments: kmailpt will read and interpret the email (thank you Perl MIME::Parser), then depending on the command line switches, popup a dialog box to ask the user for a directory where to save attachments, and ask him which attachment to remove/detach (thank you Kdialog!).
Also, the sentence "[Attachment removed by jice (26/02/2007 20:33:01): bill.zip]" will be added to the mail body. When you detach an email, it will add a similar sentence, and if the mail body is html, you will even get a link to the new location of the file: "[Attachment saved by jice (26/02/2007 20:36:17) to heavenly.gif]", on which you can even click in order to view the detached file. For text/plain messages, the sentence will be something like: "[Attachment saved by jice (26/02/2007 20:36:17) to file:///home/jice/Images/heavenly.gif]" (unfortunately, although kmail renders http:// or ftp:// urls as links, file:// are not (yet?) - I should enter a bug on bugs.kde.org for this...).
Should you want to know the currently available command line switches, here is the help:
Usage: kmailpt [options]
kmailpt takes an email on stdin, performs actions based
on this mail, then output an email on stdout.
Without any option, it will remove any file attached.
Options:
-d detach the attachments (save and remove)
-q ask which attachment to remove
-h prints this help
<<lessIt is currently composed of only one (perl) script that acts as a filter (take input from stdin, outputs the modified mail to stdout), adds dialog boxes to kmail, and allows the user to:
- remove all attachments from an email (no user interaction),
- remove selectively attachments, after asking the user,
detach (i.e. save then remove) any attachment to a directory chosen by the user,
- hence reducing the size of your mailbox, while allowing you to backup important attached files.
All these actions are logged within a sentence in the mail body (see below).
Note: removing and detaching is already supported by Thunderbird, but my favourite mailer program is KMail, then...
How it works
KMail allows the definition of filters (like any other email program), but you can define filters:
- which are launched manually,
- which can be programs reading your email on stdin and outputing the result on stdout (or "pipe through").
So I had the idea to use this in order to enhance KMail, and allow it to remove and detach attachments: kmailpt will read and interpret the email (thank you Perl MIME::Parser), then depending on the command line switches, popup a dialog box to ask the user for a directory where to save attachments, and ask him which attachment to remove/detach (thank you Kdialog!).
Also, the sentence "[Attachment removed by jice (26/02/2007 20:33:01): bill.zip]" will be added to the mail body. When you detach an email, it will add a similar sentence, and if the mail body is html, you will even get a link to the new location of the file: "[Attachment saved by jice (26/02/2007 20:36:17) to heavenly.gif]", on which you can even click in order to view the detached file. For text/plain messages, the sentence will be something like: "[Attachment saved by jice (26/02/2007 20:36:17) to file:///home/jice/Images/heavenly.gif]" (unfortunately, although kmail renders http:// or ftp:// urls as links, file:// are not (yet?) - I should enter a bug on bugs.kde.org for this...).
Should you want to know the currently available command line switches, here is the help:
Usage: kmailpt [options]
kmailpt takes an email on stdin, performs actions based
on this mail, then output an email on stdout.
Without any option, it will remove any file attached.
Options:
-d detach the attachments (save and remove)
-q ask which attachment to remove
-h prints this help
Download (0.010MB)
Added: 2007-05-28 License: GPL (GNU General Public License) Price:
879 downloads
Scalar::Util 1.19
Scalar::Util is a selection of general-utility scalar subroutines. more>>
Scalar::Util is a selection of general-utility scalar subroutines.
SYNOPSIS
use Scalar::Util qw(blessed dualvar isweak readonly refaddr reftype tainted
weaken isvstring looks_like_number set_prototype);
Scalar::Util contains a selection of subroutines that people have expressed would be nice to have in the perl core, but the usage would not really be high enough to warrant the use of a keyword, and the size so small such that being individual extensions would be wasteful.
By default Scalar::Util does not export any subroutines. The subroutines defined are
blessed EXPR
If EXPR evaluates to a blessed reference the name of the package that it is blessed into is returned. Otherwise undef is returned.
$scalar = "foo";
$class = blessed $scalar; # undef
$ref = [];
$class = blessed $ref; # undef
$obj = bless [], "Foo";
$class = blessed $obj; # "Foo"
dualvar NUM, STRING
Returns a scalar that has the value NUM in a numeric context and the value STRING in a string context.
$foo = dualvar 10, "Hello";
$num = $foo + 2; # 12
$str = $foo . " world"; # Hello world
isvstring EXPR
If EXPR is a scalar which was coded as a vstring the result is true.
$vs = v49.46.48;
$fmt = isvstring($vs) ? "%vd" : "%s"; #true
printf($fmt,$vs);
isweak EXPR
If EXPR is a scalar which is a weak reference the result is true.
$ref = $foo;
$weak = isweak($ref); # false
weaken($ref);
$weak = isweak($ref); # true
NOTE: Copying a weak reference creates a normal, strong, reference.
$copy = $ref;
$weak = isweak($ref); # false
looks_like_number EXPR
Returns true if perl thinks EXPR is a number. See "looks_like_number" in perlapi.
openhandle FH
Returns FH if FH may be used as a filehandle and is open, or FH is a tied handle. Otherwise undef is returned.
$fh = openhandle(*STDIN); # *STDIN
$fh = openhandle(*STDIN); # *STDIN
$fh = openhandle(*NOTOPEN); # undef
$fh = openhandle("scalar"); # undef
readonly SCALAR
Returns true if SCALAR is readonly.
sub foo { readonly($_[0]) }
$readonly = foo($bar); # false
$readonly = foo(0); # true
refaddr EXPR
If EXPR evaluates to a reference the internal memory address of the referenced value is returned. Otherwise undef is returned.
$addr = refaddr "string"; # undef
$addr = refaddr $var; # eg 12345678
$addr = refaddr []; # eg 23456784
$obj = bless {}, "Foo";
$addr = refaddr $obj; # eg 88123488
reftype EXPR
If EXPR evaluates to a reference the type of the variable referenced is returned. Otherwise undef is returned.
$type = reftype "string"; # undef
$type = reftype $var; # SCALAR
$type = reftype []; # ARRAY
$obj = bless {}, "Foo";
$type = reftype $obj; # HASH
set_prototype CODEREF, PROTOTYPE
Sets the prototype of the given function, or deletes it if PROTOTYPE is undef. Returns the CODEREF.
set_prototype &foo, $$;
tainted EXPR
Return true if the result of EXPR is tainted
$taint = tainted("constant"); # false
$taint = tainted($ENV{PWD}); # true if running under -T
weaken REF
REF will be turned into a weak reference. This means that it will not hold a reference count on the object it references. Also when the reference count on that object reaches zero, REF will be set to undef.
This is useful for keeping copies of references , but you dont want to prevent the object being DESTROY-ed at its usual time.
{
my $var;
$ref = $var;
weaken($ref); # Make $ref a weak reference
}
# $ref is now undef
Note that if you take a copy of a scalar with a weakened reference, the copy will be a strong reference.
my $var;
my $foo = $var;
weaken($foo); # Make $foo a weak reference
my $bar = $foo; # $bar is now a strong reference
This may be less obvious in other situations, such as grep(), for instance when grepping through a list of weakened references to objects that may have been destroyed already:
@object = grep { defined } @object;
This will indeed remove all references to destroyed objects, but the remaining references to objects will be strong, causing the remaining objects to never be destroyed because there is now always a strong reference to them in the @object array.
<<lessSYNOPSIS
use Scalar::Util qw(blessed dualvar isweak readonly refaddr reftype tainted
weaken isvstring looks_like_number set_prototype);
Scalar::Util contains a selection of subroutines that people have expressed would be nice to have in the perl core, but the usage would not really be high enough to warrant the use of a keyword, and the size so small such that being individual extensions would be wasteful.
By default Scalar::Util does not export any subroutines. The subroutines defined are
blessed EXPR
If EXPR evaluates to a blessed reference the name of the package that it is blessed into is returned. Otherwise undef is returned.
$scalar = "foo";
$class = blessed $scalar; # undef
$ref = [];
$class = blessed $ref; # undef
$obj = bless [], "Foo";
$class = blessed $obj; # "Foo"
dualvar NUM, STRING
Returns a scalar that has the value NUM in a numeric context and the value STRING in a string context.
$foo = dualvar 10, "Hello";
$num = $foo + 2; # 12
$str = $foo . " world"; # Hello world
isvstring EXPR
If EXPR is a scalar which was coded as a vstring the result is true.
$vs = v49.46.48;
$fmt = isvstring($vs) ? "%vd" : "%s"; #true
printf($fmt,$vs);
isweak EXPR
If EXPR is a scalar which is a weak reference the result is true.
$ref = $foo;
$weak = isweak($ref); # false
weaken($ref);
$weak = isweak($ref); # true
NOTE: Copying a weak reference creates a normal, strong, reference.
$copy = $ref;
$weak = isweak($ref); # false
looks_like_number EXPR
Returns true if perl thinks EXPR is a number. See "looks_like_number" in perlapi.
openhandle FH
Returns FH if FH may be used as a filehandle and is open, or FH is a tied handle. Otherwise undef is returned.
$fh = openhandle(*STDIN); # *STDIN
$fh = openhandle(*STDIN); # *STDIN
$fh = openhandle(*NOTOPEN); # undef
$fh = openhandle("scalar"); # undef
readonly SCALAR
Returns true if SCALAR is readonly.
sub foo { readonly($_[0]) }
$readonly = foo($bar); # false
$readonly = foo(0); # true
refaddr EXPR
If EXPR evaluates to a reference the internal memory address of the referenced value is returned. Otherwise undef is returned.
$addr = refaddr "string"; # undef
$addr = refaddr $var; # eg 12345678
$addr = refaddr []; # eg 23456784
$obj = bless {}, "Foo";
$addr = refaddr $obj; # eg 88123488
reftype EXPR
If EXPR evaluates to a reference the type of the variable referenced is returned. Otherwise undef is returned.
$type = reftype "string"; # undef
$type = reftype $var; # SCALAR
$type = reftype []; # ARRAY
$obj = bless {}, "Foo";
$type = reftype $obj; # HASH
set_prototype CODEREF, PROTOTYPE
Sets the prototype of the given function, or deletes it if PROTOTYPE is undef. Returns the CODEREF.
set_prototype &foo, $$;
tainted EXPR
Return true if the result of EXPR is tainted
$taint = tainted("constant"); # false
$taint = tainted($ENV{PWD}); # true if running under -T
weaken REF
REF will be turned into a weak reference. This means that it will not hold a reference count on the object it references. Also when the reference count on that object reaches zero, REF will be set to undef.
This is useful for keeping copies of references , but you dont want to prevent the object being DESTROY-ed at its usual time.
{
my $var;
$ref = $var;
weaken($ref); # Make $ref a weak reference
}
# $ref is now undef
Note that if you take a copy of a scalar with a weakened reference, the copy will be a strong reference.
my $var;
my $foo = $var;
weaken($foo); # Make $foo a weak reference
my $bar = $foo; # $bar is now a strong reference
This may be less obvious in other situations, such as grep(), for instance when grepping through a list of weakened references to objects that may have been destroyed already:
@object = grep { defined } @object;
This will indeed remove all references to destroyed objects, but the remaining references to objects will be strong, causing the remaining objects to never be destroyed because there is now always a strong reference to them in the @object array.
Download (0.042MB)
Added: 2007-05-21 License: Perl Artistic License Price:
888 downloads
FindBin 5.8.8
FindBin is a Perl module that can locate directory of original perl script. more>>
FindBin is a Perl module that can locate directory of original perl script.
SYNOPSIS
use FindBin;
use lib "$FindBin::Bin/../lib";
or
use FindBin qw($Bin);
use lib "$Bin/../lib";
Locates the full path to the script bin directory to allow the use of paths relative to the bin directory.
This allows a user to setup a directory tree for some software with directories < root >/bin and < root >/lib, and then the above example will allow the use of modules in the lib directory without knowing where the software tree is installed.
If perl is invoked using the -e option or the perl script is read from STDIN then FindBin sets both $Bin and $RealBin to the current directory.
EXPORTABLE VARIABLES
$Bin - path to bin directory from where script was invoked
$Script - basename of script from which perl was invoked
$RealBin - $Bin with all links resolved
$RealScript - $Script with all links resolved
<<lessSYNOPSIS
use FindBin;
use lib "$FindBin::Bin/../lib";
or
use FindBin qw($Bin);
use lib "$Bin/../lib";
Locates the full path to the script bin directory to allow the use of paths relative to the bin directory.
This allows a user to setup a directory tree for some software with directories < root >/bin and < root >/lib, and then the above example will allow the use of modules in the lib directory without knowing where the software tree is installed.
If perl is invoked using the -e option or the perl script is read from STDIN then FindBin sets both $Bin and $RealBin to the current directory.
EXPORTABLE VARIABLES
$Bin - path to bin directory from where script was invoked
$Script - basename of script from which perl was invoked
$RealBin - $Bin with all links resolved
$RealScript - $Script with all links resolved
Download (12.2MB)
Added: 2007-05-09 License: Perl Artistic License Price:
898 downloads
degtodec.sh 070427
degtodec.sh is a script which does conversion between decimal numbers and degree values. more>>
degtodec.sh is a script which does conversion between decimal numbers and degree values (degrees, minutes, seconds, or hours, minutes, seconds). Possible input methods are interactively, by parameter, or directly via stdin. The project can be used, for example, for geographical conversions or for special astrological calculations.
<<less Download (0.011MB)
Added: 2007-05-02 License: GPL (GNU General Public License) Price:
908 downloads
radare 0.8
radare is a toolchain that aims to create a complete set of utilities for handling binary files from the command line. more>>
radare is a toolchain that aims to create a complete set of utilities for handling binary files from the command line. The project is mainly an hexadecimal editor for the command line but with advanced features.
There are extensions for debugging processes on x86-32 and ARM, libusb and fd sniffers, binary diffing utilities, base format conversions, generating graphs of a program, A cross-platform disassembler as an objdump frontend, and more.
Enhancements:
- A new search engine. I/O plugin layers (debugging, Haret, and POSIX). Debugging on NetBSD.
- Arguments to the debugged process (radare "dbg:///bin/ls /usr").
- Base address (B command). xc now can convert from stdin binary data to hex pairs.
- Date format string and filetime (NTFS) support.
- Non-readline interface fixes (more orthogonalized).
- Wide-char support (reading and writing 00 filled strings).
- Fixes in the visual mode.
- The debugger can backtrace on Linux/x86 (needs more work).
- New xor/xorpair hashing algorithms for hasher.
<<lessThere are extensions for debugging processes on x86-32 and ARM, libusb and fd sniffers, binary diffing utilities, base format conversions, generating graphs of a program, A cross-platform disassembler as an objdump frontend, and more.
Enhancements:
- A new search engine. I/O plugin layers (debugging, Haret, and POSIX). Debugging on NetBSD.
- Arguments to the debugged process (radare "dbg:///bin/ls /usr").
- Base address (B command). xc now can convert from stdin binary data to hex pairs.
- Date format string and filetime (NTFS) support.
- Non-readline interface fixes (more orthogonalized).
- Wide-char support (reading and writing 00 filled strings).
- Fixes in the visual mode.
- The debugger can backtrace on Linux/x86 (needs more work).
- New xor/xorpair hashing algorithms for hasher.
Download (0.24MB)
Added: 2007-04-30 License: GPL (GNU General Public License) Price:
907 downloads
ipsort
ipsort script sorts a STDIN of IP addresses to STDOUT. more>>
ipsort script sorts a STDIN of IP addresses to STDOUT. It sorts by the first octet, then by the second, the third and the fourth.
Usage: Takes Standard in or a file or list of files. So ipsort < file1 > < file2 > or cat < file > | ipsort
Its quite clever and looks for an IP address on each line, rejecting if it doesnt find one
Options:
-c or --commas Separate the list by space-separated commas, rather than one IP per line.
-u or --unique Uniquely sort the list as well, to avoid duplicate IPs.
-s or --string Use this string to separate the IPs. Eg. -s :
-m or --multiple Search for multiple IP addresses per line.
-h or --help Display this usage message.
<<lessUsage: Takes Standard in or a file or list of files. So ipsort < file1 > < file2 > or cat < file > | ipsort
Its quite clever and looks for an IP address on each line, rejecting if it doesnt find one
Options:
-c or --commas Separate the list by space-separated commas, rather than one IP per line.
-u or --unique Uniquely sort the list as well, to avoid duplicate IPs.
-s or --string Use this string to separate the IPs. Eg. -s :
-m or --multiple Search for multiple IP addresses per line.
-h or --help Display this usage message.
Download (MB)
Added: 2007-04-05 License: GPL (GNU General Public License) Price:
934 downloads
iodine 0.4.0
iodine is a piece of software that lets you tunnel IPv4 data through a DNS server. more>>
iodine is a piece of software that lets you tunnel IPv4 data through a DNS server. This can be useful in situations where Internet access is firewalled, but DNS queries are allowed.
iodine needs a TUN/TAP device to operate. The bandwidth is asymmetrical with limited upstream and up to 1 Mbit/s downstream.
Enhancements:
- Multiuser support was added for up to 8 users simultaneously.
- Authentication was added, and a password is entered as an argument or on stdin.
- A manpage was added. "make" targets were added for "install" and "uninstall".
- The DNS code was cleaned up.
- More test cases were added.
- The directory structure was changed.
<<lessiodine needs a TUN/TAP device to operate. The bandwidth is asymmetrical with limited upstream and up to 1 Mbit/s downstream.
Enhancements:
- Multiuser support was added for up to 8 users simultaneously.
- Authentication was added, and a password is entered as an argument or on stdin.
- A manpage was added. "make" targets were added for "install" and "uninstall".
- The DNS code was cleaned up.
- More test cases were added.
- The directory structure was changed.
Download (0.010MB)
Added: 2007-03-25 License: GPL (GNU General Public License) Price:
943 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above stdin search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed