Hi list,

I just implemented multiple statements after 'or' but it wouldn't work unless I 
put the semicolon after the closing bracket. Am I right guessing that the 
trailing semicolon ends the statement at the beginning and is therefore 
invariably needed?

#!/usr/bin/perl -w
use strict;
use warnings;

chown 204, 202, 'test.txt' or do {
        warn "FEHLER!\n";
        warn "chown nicht möglich: $!\n";
}; 

chmod 0775, 'test.txt' or do {
        warn "FEHLER!\n";
        warn "chmod nicht möglich: $!\n";
};

Kind regards, 
Nora 



Reply via email to