Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl variables

# 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 :: unique in perl 
Perl :: append string perl 
Perl :: perl mechanize check mirror response for errors 
Perl :: perl mechanize infinite scroll with attempt count 
Perl :: first line perl 
Pascal :: pascal wait for key 
Pascal :: pascal iteration 
Pascal :: case of pascal 
Powershell :: Take ownership of a file 
Powershell :: change increase windows scroll bar slider width 
Gdscript :: godot 
Clojure :: clojure read file 
Lisp :: Doom emacs pdf-tools 
Assembly :: press button on enter 
Assembly :: error: ‘cv’ is not a namespace-name using namespace cv; 
Assembly :: what do you mean by io address and memory address 
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+5 =