Perl Quick Reference Variable and Arrays $var = "contents" $v = 45 $a is 2, $b is 4, $c is 6 same as (1,2,3,4,5) swap $a and $b $d gets value of $a, array @a gets list of h files in / etc. $a = ; $b = ; while ($v= @a = s /. / / change to directory / etc) search "cat" substitute "dogs
Perl Quick Reference Variable and Arrays $var = "contents" $v = 45 $a is 2, $b is 4, $c is 6 same as (1,2,3,4,5) swap $a and $b $d gets value of $a, array @a gets list of h files in / etc. $a = ; $b = ; while ($v= @a = s /. / / change to directory / etc) search "cat" substitute "dogs