RE: next if........ a cleaner way?

2003-03-20 Thread Hanson, Rob
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 =~

Re: next if........ a cleaner way?

2003-03-20 Thread Rob Dixon
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

Re: next if........ a cleaner way?

2003-03-20 Thread R. Joseph Newton
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 )