Questions about this topic? Sign up to ask in the talk tab.
User contributions
From NetSec
This user is currently blocked. The latest block log entry is provided below for reference:
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)
- 03:26, 16 July 2012 (diff | hist) . . (+210) . . N Perl/Helpful Libraries/Throughput/Usage/Server (Created page with "{{notice|This segment will be updated with documentation in the next 24 hours; apologies for the delay. The code itself has been completed and seasoned perl developers should be...")
- 03:25, 16 July 2012 (diff | hist) . . (+728) . . N Perl/Helpful Libraries/Throughput/Usage/Log (Created page with "* '''A simple logger''' {{code|text=<source lang="perl">my $logger = new Log(); $logger->error("an error has occured");</source>}} * Output defaults to STDERR but can be set to f...")
- 03:25, 16 July 2012 (diff | hist) . . (+319) . . N Perl/Helpful Libraries/Throughput/Usage/Config (Created page with "* '''A simple config parser''' {{code|text=<source lang="perl">use Throughput::Config qw(parse); my %config = Throughput::parse('config.conf');</source>}} * The config file shoul...")
- 03:24, 16 July 2012 (diff | hist) . . (+240) . . N Perl/Helpful Libraries/Throughput/Usage (Created page with "To set up your development environment for Throughput, you'll need to put the contents of '''Throughput.tgz''' in your perl include directory or put the '''Throughput''' director...")
- 03:24, 16 July 2012 (diff | hist) . . (+63) . . N Perl/Helpful Libraries/Throughput/Download (Created page with "[http://blackhatacademy.org/Throughput.tgz Download Throughput]")
- 03:21, 16 July 2012 (diff | hist) . . (+109) . . N Perl/Helpful Libraries/Throughput (Created page with "Throughput is a library that provides abstraction for '''sockets, logging,''' and simple '''configuration'''.")
- 03:19, 16 July 2012 (diff | hist) . . (-726) . . Perl (→User-Defined Functions)
- 03:18, 16 July 2012 (diff | hist) . . (+765) . . N Perl/Basics/User Defined Functions (Created page with "A function is defined by the programmer to create re-usable code. In our example, we will make an is_integer function that returns either 1 or undef depending on whether the sca...") (current)
- 03:17, 16 July 2012 (diff | hist) . . (-2,440) . . Perl (→User Input)
- 03:16, 16 July 2012 (diff | hist) . . (+327) . . N Perl/Basics/User Input/STDIN (Created page with "Reading from standard input in perl is very simple. {{code|text=<source lang="perl"> print "Enter your name :"; my $name = <>; print "Your name is $name\n"; </source>}}The <> ope...") (current)
- 03:14, 16 July 2012 (diff | hist) . . (+829) . . N Perl/Basics/User Input/Command Line/Getopt::Long/Analysis (Created page with "The '''GetOptions()''' function receives message formats and '''references''' for variable assignment. You can execute the script as follows: perl script.pl --message "hello" -...") (current)
- 03:14, 16 July 2012 (diff | hist) . . (+324) . . N Perl/Basics/User Input/Command Line/Getopt::Long/Code (Created page with "{{code|text=<source lang="perl"> use strict; use warnings; use Getopt::Long; my $message, $boolean; GetOptions('message=s' => \$message, 'boolean' => \$boolean); print $message...") (current)
- 03:13, 16 July 2012 (diff | hist) . . (+92) . . N Perl/Basics/User Input/Command Line/Getopt::Long (Created page with "This requires Getopt::Long. The perldoc is [http://perldoc.perl.org/Getopt/Long.html here].")
- 03:13, 16 July 2012 (diff | hist) . . (-20) . . Perl/Basics/User Input/Command Line/Getopt::Std (→Getopt::Std)
- 03:12, 16 July 2012 (diff | hist) . . (+826) . . N Perl/Basics/User Input/Command Line/Getopt::Std/Analysis (Created page with "The '''getopts()''' function takes a string of flags to parse as well as a hash reference. You can execute the script as follows: perl script.pl -m "hello" -b perl script.pl ...") (current)
- 03:11, 16 July 2012 (diff | hist) . . (+271) . . N Perl/Basics/User Input/Command Line/Getopt::Std/Code (Created page with "{{code|text=<source lang="perl"> use strict; use warnings; use Getopt::Std; my %opts; getopts('m:b',\%opts); print $opts{m} . "\n"; print "The boolean -b option was set!\n" if ...") (current)
- 03:09, 16 July 2012 (diff | hist) . . (+110) . . N Perl/Basics/User Input/Command Line/Getopt::Std (Created page with "====Getopt::Std==== This requires Getopt::Std. The perldoc is [http://perldoc.perl.org/Getopt/Std.html here].")
- 03:09, 16 July 2012 (diff | hist) . . (-111) . . Perl/Basics/User Input/Command Line (→Getopt::Std)
- 03:02, 16 July 2012 (diff | hist) . . (+111) . . Perl/Basics/User Input/Command Line
- 03:02, 16 July 2012 (diff | hist) . . (+95) . . N Perl/Basics/User Input/Command Line (Created page with "Command line arguments are passed at execution time; e.g. perl script.pl -a arg1 -b arg2 ...")
- 02:59, 16 July 2012 (diff | hist) . . (-1,314) . . Perl (→Loops)
- 02:59, 16 July 2012 (diff | hist) . . (+326) . . N Perl/Basics/Loops/For Each (Created page with "* A foreach loop is built specifically for array handling and iterates through all of the elements in an array. {{code|text=<source lang="perl">my @messages = ("Hello world!\n","...") (current)
- 02:58, 16 July 2012 (diff | hist) . . (+388) . . N Perl/Basics/Loops/For (Created page with "* A for loop has a built-in counter and stops at a pre-defined number. {{code|text=<source lang="perl">my @messages = ("Hello world!\n","I like perl!\n"); for (my $counter = 0; $...") (current)
- 02:58, 16 July 2012 (diff | hist) . . (+294) . . N Perl/Basics/Loops/Until (Created page with "* An '''until''' loop executes '''until''' a condition is '''true'''. {{code|text=<source lang="perl">my $switch; my $counter; until (defined $switch) { print $counter; $...") (current)
- 02:58, 16 July 2012 (diff | hist) . . (+364) . . N Perl/Basics/Loops/While (Created page with "* A '''while loop''' executes '''while''' a condition is '''true'''. {{code|text=<source lang="perl">my $switch; my $counter; while (undef $switch) { print $counter; $cou...") (current)
- 02:57, 16 July 2012 (diff | hist) . . (+77) . . N Perl/Basics/Loops (Created page with "A loop is a block of code that continues to execute until a condition is met.")
- 02:55, 16 July 2012 (diff | hist) . . (-753) . . Perl (→Bitwise Manipulations)
- 02:55, 16 July 2012 (diff | hist) . . (+159) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/Bit Rotation (Created page with "Perl bit rotation requires the [http://search.cpan.org/~stbey/Bit-ShiftReg-2.0/ShiftReg.pm Bit::ShiftReg package from CPAN]. More information available there.")
- 02:55, 16 July 2012 (diff | hist) . . (+260) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/Bit Shifting (Created page with "* '''<<''' - The '''shift left''' operator * '''>>''' - The '''shift right''' operator {{code|text=<syntaxhighlight lang="perl">my $num = 10; $num = $num << 2; #Shift left two bi...")
- 02:54, 16 July 2012 (diff | hist) . . (+145) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/XOR (Created page with "* '''^''' - The '''XOR''' (exclusive or) operator {{code|text=<source lang="perl"> my $num = 10; $num = $num ^ 25; print $num . "\n"; </source>}}")
- 02:54, 16 July 2012 (diff | hist) . . (+129) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/OR (Created page with "* '''|''' - The '''OR''' operator {{code|text=<source lang="perl"> my $num = 10; $num = $num | 25; print $num . "\n"; </source>}}")
- 02:53, 16 July 2012 (diff | hist) . . (+126) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/NOT (Created page with "* '''~''' - The '''NOT''' operator {{code|text=<source lang="perl"> my $num = 10; $num = ~$num; print $num . "\n"; </source>}}")
- 02:52, 16 July 2012 (diff | hist) . . (+131) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations/AND (Created page with "* '''&''' - The '''AND''' operator. {{code|text=<source lang="perl"> my $num = 10; $num = $num & 25; print $num . "\n"; </source>}}")
- 02:51, 16 July 2012 (diff | hist) . . (+110) . . N Perl/Basics/Boolean Logic/Bitwise Manipulations (Created page with "Perl's bitwise manipulations cover the syntax for performing '''bitwise math''' on variables.")
- 02:49, 16 July 2012 (diff | hist) . . (-548) . . Perl (→Helper Natives)
- 02:49, 16 July 2012 (diff | hist) . . (+191) . . N Perl/Basics/Boolean Logic/Helper Natives/Undef (Created page with "The '''undef''' native determines if a '''scalar''' value is un-defined: {{code|text=<source lang="perl"> print "We received a response from the server.\n" unless undef $response...")
- 02:48, 16 July 2012 (diff | hist) . . (+188) . . N Perl/Basics/Boolean Logic/Helper Natives/Defined (Created page with "The '''defined''' native determines if a '''scalar''' value is defined: {{code|text=<source lang="perl"> print "We received a response from the server.\n" if defined $response; <...")
- 02:48, 16 July 2012 (diff | hist) . . (+179) . . N Perl/Basics/Boolean Logic/Helper Natives/Exists (Created page with "The '''exists''' native applies specifically to hashes and hash references. {{code|text=<source lang="perl">print "This user has an age.\n" if exists $user->{'age'}; </source>}}")
- 02:47, 16 July 2012 (diff | hist) . . (+135) . . N Perl/Basics/Boolean Logic/Helper Natives (Created page with "These helper natives are '''boolean''' statements that assist with the determination of the existence of or the defining of a variable.")
- 02:44, 16 July 2012 (diff | hist) . . (-4,360) . . Perl
- 02:44, 16 July 2012 (diff | hist) . . (+574) . . N Perl/Basics/Boolean Logic/Statements/Golfing (Created page with "The term '''golfing''' applies to condensing a boolean statement into one line. Golfing is typically used when you only need to execute one line of code for a boolean statement. ...")
- 02:44, 16 July 2012 (diff | hist) . . (+1,209) . . N Perl/Basics/Boolean Logic/Statements/Switch (Created page with "To use perl's '''switch()''' routine you must have '''use Switch;''' before your switch() statement. A switch statement allows a programmer to avoid long chains of "elsif" statem...")
- 02:43, 16 July 2012 (diff | hist) . . (+338) . . N Perl/Basics/Boolean Logic/Statements/And and Or (Created page with ""And" and "or" are used to apply multiple conditions to a boolean statement. * '''&&''' is the way perl represents "and" * '''||''' is the way perl represents "or" Example: {{cod...")
- 02:42, 16 July 2012 (diff | hist) . . (+646) . . N Perl/Basics/Boolean Logic/Statements/If (Created page with "An '''if''' statement may have 3 types of clauses: '''if''','''elsif''', and '''else'''. For the below example, assume that the $age scalar is passed as a command line argument: ...")
- 02:41, 16 July 2012 (diff | hist) . . (+738) . . N Perl/Basics/Boolean Logic/Operators/Regular Expressions (Created page with "The '''~''' operator is used with regular expressions, which are covered later in this article. The ~ operator can be used in a variety of ways: * '''=~''' * '''!~''' Regular ex...")
- 02:41, 16 July 2012 (diff | hist) . . (+809) . . N Perl/Basics/Boolean Logic/Operators/Mathematical (Created page with "* '''=''' The '''=''' operator assigns a value to a variable. * '''==''' The '''==''' operator is used to test if a variable is equal to a value or another variable. * '''!''' ...")
- 02:33, 16 July 2012 (diff | hist) . . (-1,376) . . Perl
- 02:33, 16 July 2012 (diff | hist) . . (+626) . . N Perl/Basics/Variables and Data Types/Casting (Created page with "Casting is the process of transitioning from one data type to another. This is typically done using curly brackets '''{}''' preceeded by a data type designator ($,%, or @). * ...")
- 02:32, 16 July 2012 (diff | hist) . . (+391) . . N Perl/Basics/Variables and Data Types/References/Callback (Created page with "This involves user-defined functions. User-defined functions are covered later in this article. A callback reference is a scalar that points to a function. To create a callback...")
- 02:31, 16 July 2012 (diff | hist) . . (+428) . . N Perl/Basics/Variables and Data Types/References/Hash (Created page with "A hash reference is a scalar created using the '''\ '''operator as follows: {{code|text=<source lang="perl"> my %user; $user{'name'} = "hatter"; $user{'network'} = "irc.blackh...")
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)