Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl $ @ %

# Basic syntax:
# In Perl, variables generally start with one of $, @, or % (called sigils)

# Scalars (strings, floats, ints) start with $, e.g.:
my $scalar_variable = "This string";

# Arrays (lists) start with @
my @array_variable = (2.3, 42, "Word");

# Hashes (dictionaries) start with % and use "key => value" to assign mappings
my %hash_variable = (
  42 => "The answer",
  mice => "vast, hyper-intelligent pan-dimensional beings",
);
Comment

perl @$

my @array = ( 1, 2, 3 );
my $array_ref = @array; 
print "REF: ", $array_ref,"
";
print "VALUES: ", join " ", @$array_ref;
Comment

PREVIOUS NEXT
Code Example
Perl :: perl mongodb conf location 
Perl :: perl 
Perl :: perl mechanize infinite scroll 
Perl :: what is perl poetry 
Perl :: how to initialize an array 
Pascal :: print in pascal 
Pascal :: pascal while 
Pascal :: Pascal (fpc 3.0.4) sample 
Powershell :: takeown cmd 
Powershell :: powershell show which diorecty is temp 
Gdscript :: gdscript while loop 
Clojure :: ex: Clojure define expected time 
Lisp :: list contains lisp 
Assembly :: sqlalchemy filter date today 
Assembly :: how to import servo library in arduino 
Assembly :: import svg in google slides 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: map range of numbers to another range 
Javascript :: jest cache clear 
Javascript :: javascript replace spaces with dashes 
Javascript :: import redux thunk 
Javascript :: jquery refresh page 
Javascript :: delete session javascript 
Javascript :: get week day name in javascript 
Javascript :: how to remove checked attribute of checkbox in jquery 
Javascript :: loop array backwards javascript 
Javascript :: generate random whole numbers within a range javascript 
Javascript :: jquery remove and add class 
Javascript :: how to use another port in angular 
Javascript :: How to get current URL with Javascript or React 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =