如果符号链接错误,如何签入Perl?

时间:2012-12-12 22:52:28

标签: perl

以下位出错:

# Only Execute on Prod Stagesif ($stage eq 'Prod') {
if ($stage eq "Prod") {
    # If /mysql symlink exists, exit0 immediately    
    if ( -l "/mysql" ) {
        exit(0);
        }
    elsif {
        die "Did not meet expected system disk configuration";
    }
}
exit (0);

使用:

syntax error at ./010MySQLDataDirectoryCheck.pl line 16, near "elsif {"
syntax error at ./010MySQLDataDirectoryCheck.pl line 19, near "}"
Execution of ./010MySQLDataDirectoryCheck.pl aborted due to compilation errors.

我到底错过了什么?

1 个答案:

答案 0 :(得分:2)

... elsif ==> else任何机会?