Scalar variables are simple variables containing only one element. An element can be either an entire string, a number, or a reference. Strings may contain any symbol, letter, or number. Numbers may contain exponents, integers, or decimal values.
#!/usr/bin/perl print “content-type: text/html \n\n"; $mystring = "Hello, World"; $myescapechar = "Welcome to Joe\'s"; $myinteger = "5"; $myinteger2 = "-5"; $mypi = "3.14159"; print $mystring; print $myescapechar; print $myinteger; print $myinteger2; print $mypi;
Output: ------- Hello, World! Welcome to Joe's 5 -5 3.1459
AllBlogToolsFacebook comments for blogger brought to you by AllBlogTools.com , Get Yours?