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:59, 16 July 2012 (diff | hist) . . (-1,314) . . Perl (→Loops)
- 03: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)
- 03: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)
- 03: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)
- 03: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)
- 03: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.")
- 03:55, 16 July 2012 (diff | hist) . . (-753) . . Perl (→Bitwise Manipulations)
- 03: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.")
- 03: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...")
- 03: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>}}")
- 03: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>}}")
- 03: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>}}")
- 03: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>}}")
- 03: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.")
- 03:49, 16 July 2012 (diff | hist) . . (-548) . . Perl (→Helper Natives)
- 03: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...")
- 03: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; <...")
- 03: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>}}")
- 03: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.")
- 03:44, 16 July 2012 (diff | hist) . . (-4,360) . . Perl
- 03: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. ...")
- 03: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...")
- 03: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...")
- 03: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: ...")
- 03: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...")
- 03: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. * '''!''' ...")
- 03:33, 16 July 2012 (diff | hist) . . (-1,376) . . Perl
- 03: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 @). * ...")
- 03: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...")
- 03: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...")
- 03:31, 16 July 2012 (diff | hist) . . (+50) . . N Perl/Basics/Variables and Data Types/References (Created page with "A reference is very similar to a pointer in C.")
- 03:27, 16 July 2012 (diff | hist) . . (-512) . . Perl
- 03:26, 16 July 2012 (diff | hist) . . (+301) . . N Perl/Basics/Hashes/Helper Functions/Keys (Created page with "This uses a foreach() loop and casting. We can isolate $key=>$value pairs the same as above using keys in stead of each: {{code|text=<syntaxhighlig...")
- 03:25, 16 July 2012 (diff | hist) . . (+263) . . N Perl/Basics/Hashes/Helper Functions/Each (Created page with ""'''while my each'''" can be used to isolate $key => $value pairs from a hash as follows with our %user hash: {{code|text=<syntaxhighlight lang="perl">while(my($ke...")
- 03:23, 16 July 2012 (diff | hist) . . (-3,101) . . Perl
- 03:21, 16 July 2012 (diff | hist) . . (+781) . . N Perl/Basics/Variables and Data Types/Hashes (Created page with "A hash is very similar to a struct in C. ====Introduction==== Hashes are prefixed by the '''%''' character. Hash element values are prefixed by '''$'''. A hash element may ...")
- 03:20, 16 July 2012 (diff | hist) . . (+544) . . N Perl/Basics/Variables and Data Types/Helper Functions/Shift (Created page with "The '''shift()''' function is like the inverse of the '''pop()''' function and treats the array like a stack. In stead of popping from the top of t...")
- 03:19, 16 July 2012 (diff | hist) . . (-2) . . Perl/Basics/Variables and Data Types/Helper Functions/Unshift
- 03:19, 16 July 2012 (diff | hist) . . (+395) . . N Perl/Basics/Variables and Data Types/Helper Functions/Unshift (Created page with "* The '''unshift()''' function is like the inverse of the '''push()''' function and treats the array like a stack. In stead of pushing to the top o...")
- 03:19, 16 July 2012 (diff | hist) . . (+451) . . N Perl/Basics/Variables and Data Types/Helper Functions/Pop (Created page with "The pop() function is similar to the pop instruction in assembly and treats the array like a stack. {{code|text=<so...")
- 03:18, 16 July 2012 (diff | hist) . . (+470) . . N Perl/Basics/Variables and Data Types/Helper Functions/Push (Created page with "The '''push()''' function is used to append an element or elements to the end of an array, similar to the push instruction in assembly and treats...")
- 03:16, 16 July 2012 (diff | hist) . . (+354) . . N Perl/Basics/Variables and Data Types/Helper Functions/Split (Created page with "Split takes a scalar and converts it to an array using a delimiter. Using our string from earlier: {{code|text=<syntaxhighlight lang="perl">my $joined_message = "Hello world!\n,...")
- 03:15, 16 July 2012 (diff | hist) . . (+359) . . N Perl/Basics/Helper Functions/Join (Created page with "Join will compile an array into a scalar. Using the array example above, '''@messages''', the following code will generate the string "Hello world!\n, I like perl!\n" as a scala...") (current)
- 03:10, 16 July 2012 (diff | hist) . . (-956) . . Perl
- 03:10, 16 July 2012 (diff | hist) . . (+601) . . N Perl/Basics/Variables and Data Types/Arrays (Created page with "Arrays (or lists) have elements. Typically an array in perl can contain anything - each element can be something different. An array element may be a hash, hash reference, scal...")
- 03:09, 16 July 2012 (diff | hist) . . (+287) . . N Perl/Basics/Variables and Data Types/Scalars (Created page with "Scalars in perl are prefixed with a '''$'''. A scalar may contain any string, integer, or floating point value. It may also contain a reference pointer. An example declaration:...")
- 03:07, 16 July 2012 (diff | hist) . . (+205) . . N Perl/Basics/Variables and Data Types (Created page with "In strict perl, variables must be declared using the "my" or "our" operators. "my" is used implicitly in non-shared memory, whereas "our" is used explicitly for shared memory to...")
- 03:03, 16 July 2012 (diff | hist) . . (-1,667) . . Perl
- 03:02, 16 July 2012 (diff | hist) . . (+1,369) . . N Perl/Basics/Your First Program/Analyzing Your First Program (Created page with "The shebang declares the location of the code's interpreter. I.e. if you're writing bash, you'll need to put: #!/bin/bash at the top of your file. In perl, it's typically: ...")
- 03:01, 16 July 2012 (diff | hist) . . (+378) . . N Perl/Basics/Your First Program/Code (Created page with "To run this code, you'll only need to put it in a text file. Save it as "hello.pl", and then you can execute the following to run it from either cygwin or bash: * chmod +x h...")
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)