Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl sigils

# 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

PREVIOUS NEXT
Code Example
Perl :: Perl list files and folders in a directory 
Perl :: Move files to new directory 
Perl :: difference between @ and $ in perl 
Perl :: perl rename a file 
Pascal :: take console input in pascal 
Pascal :: pascal output 
Pascal :: while loop in pascal 
Pascal :: pascal area 
Powershell :: takeown /f 
Powershell :: ps where-object 
Gdscript :: GDscript classes 
Clojure :: algorithm to reverse a string clojure 
Lisp :: magit pull request 
Assembly :: jinja loop index 
Assembly :: set assembly highligh vim 
Assembly :: IPL_DEPTH_LABEL 
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
8+6 =