This should work...
next if $name =~
/Block|nobody|User|www|backup|ftp|httpd|root|netop|sysop|users|bill/;
next if $name =~ /^(?:\d|#)/;
next if $quota !~ /\d+/;
next if $quota = 8;
You should also be able to combine the two (just make sure you test my
syntax)...
next if $name =~
Hi Chad.
Chad Kellerman wrote:
Hello everyone,
I want to clean this bit of code up. It looks really messy. I
am in a mental block. Any suggestions?
@userInfo = split /\s+/, $buffer;
Use a single space here to split on.
@userInfo = split ' ', $buffer;
It's a special case that
chad kellerman wrote:
Hello everyone,
I want to clean this bit of code up. It looks really messy. I am in a
mental block. Any suggestions?
@userInfo = split /\s+/, $buffer;
#insert home users quota in the db
foreach $userInfo ( @userInfo ) {
( $name, $quota )