in reply to Perl $
You can answer most simple questions like this by:
- Reading the documentation--in this case perldoc perlvar, and perldoc perlre
- Trying it out to see what happens
Generally when you read the documentation, it will mention various things that you might not understand, so when you write your experiment, try to cover as many different types of cases as possible. This will help you understand the feature better as well as giving you some practice on testing boundary conditions in your programs.
Update: Fixed links/formatting. Thanks to Happy-the-monk and ww for the catches.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
---|
In Section
Seekers of Perl Wisdom