$#array_name
This is one less than the number of elements in the array. If the array just doesn't exist or is empty, $#array_name
is -1
$#array_name
This is one less than the number of elements in the array. If the array just doesn't exist or is empty, $#array_name
is -1\n
is a newline character when it appears in a string with double quotes, but is literally the two characters, backslash and n
, when it appears in single quotes.print "This string\nshows up on two lines."; print 'This string \n shows up on only one.';
\t
to insert a tab character, and \\
to insert a backslash into a double-quoted string.)