So-called scripting languages (e.g. Perl, Ruby, Lua) are often used for small tasks, but also as the "glue" between the components that make up an applications. The motivation for choosing one of them is to come up with a solution within a short time period. Nonetheless, careful development is key; otherwise, a few years down the road, nobody will be able to read what was scripted.
Scripting delivers quick results, but it makes accuracy and readability especially important.