No such thing as a small change | |
PerlMonks |
Re: Using smbstatusinfo in scriptsby teabag (Pilgrim) |
on Apr 08, 2003 at 15:57 UTC ( [id://248980]=note: print w/replies, xml ) | Need Help?? |
There is absolutely no reason I'm declaring all those variables up front, I guess. Still learning how to be strict. ;)
I've always thought the (linux) grep was a bit faster then the builtin one in perl. But with this script it probably doesn't matter much. And you're right. Your last code does look a lot nicer. I just went for the quick and dirty code. One correction on your last code though: MON should be MONTH. Aside from that it works perfectly. Teabag. chmod 666 *.* 'cause everyone should have the right to read and write!
In Section
Cool Uses for Perl
|
|