The problems stated after the question could be solved by looking at what Perl prints in response to the above code :
syntax error at tmp.pl line 14, near ") print" Execution of tmp.pl aborted due to compilation errors.
Which means that Perl does want curly braces around the code to be processed in a foreach loop.
In reply to Re: How can I get image height and width without using Image::Size?
by Corion
in thread How can I get image height and width without using Image::Size?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |