More Examples
- Functions try to be useful in every context
- If you aren't sure about, say, sort, see perldoc -f sort.
- reverse, for example, will reverse a single string in scalar context:
@reversed = reverse qw( honk blat zort ); $reversed = reverse qw( honk blat zort );
- $reversed is now 'troztalbknoh'