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 :)