previous |
up |
next
$single = 'camel';
$double = "the word is $single\n";
# the word is camel
$back = `pwd`; # current working dir
if ($city eq 'Utrecht') {
print "I know where I am\n";
}
else {
print "I think I'm lost\n";
}
unless ($city eq 'Utrecht') {
print "I think I'm lost\n";
}
file tests like a shell: -e, -x, -d, ...
(-e '/usr/bin/perl') or
warn "Perl not installed!\n";
test statements
($word = 'camel') or
die "out of memory...\n";
previous |
up |
next
I
will not guarantee that any of these pages will exist indefinately, so please
only bookmark the top page.
|
|