Archive for March, 2007

killit - the new way to bring the programms down

It’s awfull when you don’t have a response from a running program. You’re waiting and wasting your time and nothing happens. To terminate a linux program on the quick and dirty way i use the simple shell script. The script takes a as argument the programm name. Just place it in a directory inside your [...]

How do I strip blank space from the beginning/end of a string?

Do this in two steps:
$str =~ s/^\s+//;
$str =~ s/\s+$//;