Tags » Perl

how to access the single element to compare them for equality in 2-D array

print “@$first\n”;
if (@$first eq @$element)

here, $first and $element are one-dimensional array in a two-dimensional array. So @$first is the 12th item in the one-dimensional array which reference is $first. 7 more words

Perl

How to print any row of 2D array

$first=pop(@big1);
print”@$first\n”;

Here, @big1 is an 2D array so $first is just a reference as $big1[0].
Therefore, just dereference it.

Perl

Seminar, Fri, 8/29

Introductions

Fastwrite

  1. RecountĀ an aha moment you’ve had as a student of writing. Try to describe not only what you learned but the experience of learning it.
  2. 206 more words

Try rakudobrew and play with concurrency

rakudobrew is similar to perlbrew, but it’s for Rakudo (a.k.a., Perl 6), the Perl-inspired language that we’ve all come to have a love/hate relationship with. 37 more words

Programming

Functions of esProc/R/Python/Perl in Structured Data Process by Comparison :Chapter 20. Comparing Sorting Performance

For each script, use built-in library function to sort data, and develop a bubble sort algorithm. Then their performances are presented by comparison.

esProc

Perl… 293 more words

EsProc

Drink Ordering Service (CLI)

#!/usr/bin/perl

=Help
$ defines : scalar (simple variable accepting either string,number,reference)
% defines : hash (aka associative array, dictionary)
@ defines : array (containing ordered list of scalars)
$foo !== @foo !== %foo
'my' creates a new variable, 'local' temporarily amends the value of a 
variable (depending on the scope, e.g. 205 more words
IT