Help for this page

Select Code to Download


  1. or download this
    foreach (split /,/, $perm) {
        warn "Invalid permission setting: $_" unless /^[ugoa]+=[rwxsS]+$/;
    }
    
  2. or download this
    foreach (@perms) {
            warn "Invalid permission setting detected in $_" unless /^(([u
    +goa]+=[rwxsS]+)(?(?!$),))+$/;
    }