perl notes

From thelinuxwiki
Revision as of 11:58, 10 May 2021 by Nighthawk (Talk | contribs)

Jump to: navigation, search

variables

local

my $color='green';

global

our $color='purple';

===interpolation===double quotes get the value of a variable

 my $amount = 20;
 print "$amount\n";
 print '$amount\n';
 
 20
 $amount\n