Seems confusing, doesn't it?
IMO, a statement is usually something like
if ($this == 1) { do_that($thing) };
Meaning part of your code that evaluates an expression, or EXPR. In this example, the EXPR is $this == 1, and the if statement evaluates it to return a certain value and perform a function based on the outcome.
It seems to me you are just beginning your journey in the world of Perl, and would do well to invest in a book - perhaps Learning Perl.
Update:
In the simplest possible terms :
Expression
# this is an expression $foo = 1; # so is this $bar = ($foo . $baz);
Statement
# statements are like : #if .. else #while .. do #for .. # etc etc
Azatoth a.k.a Captain Whiplash
Make Your Die Messages Full of Wisdom!In reply to Re: What is the difference between a Statement and an Expression?
by azatoth
in thread What is the difference between a Statement and an Expression?
by supernewbie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |