Using UPSes

I know that using UPSes in servers environment is a MUST and it prevents many problems, but what about workstations and other network equipment [for example switches]?

If we ignore the idea that UPSes can [and most of the time do] save some hardware during power failures and assume that we use UPSes just to keep servers running 24/7 no matter what is going on, that why do we need it if lets say switches are not backed up with UPSes? On the other hand, why do we need those switches if all the workstations are not on UPSes as well?

And the main questions are: “Is it worthy to move all equipment on UPSes?” and “What kind of setup is better?”

Perl: functions and arrays

While reading an interesting post about perl by my brother I found an useful thing for myself: if a function returns an array, it is possible to filter the output of the function by applying array index to it.

For instance, function localtime() returns an array of values and usually, when I needed to get only one of the values from the middle of the array, I needed to read the output of the function to the array and then extract the value with the index:

my @time = localtime();
my $hour = $time[2];

Now, when I know the way out I can use one line:

my $hour = (localtime())[2];

there only two things that I can tell about this: there is always something to learn and there is more than one way to do it :)