Quantcast
Channel: The Effective Perler » bug
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

Watch out for side effects with `use VERSION`

To specify that you wanted to use at least a particular version of Perl, you specified that version with the use built-in: use VERSION; We covered this in Item 83: Limit your distributions to the right...

View Article


Image may be NSFW.
Clik here to view.

Use when() as a statement modifier

Perl 5.10 introduced the given-when statement, and Perl 5.12 refines it slightly by letting you use the when as a statement modifier. A statement modifier puts the conditional expression at the end of...

View Article


Image may be NSFW.
Clik here to view.

Avoid modifying scalars connected to string filehandles

Since Perl 5.8, you can treat a string as a file (Item 54. Open filehandles to and from strings). You can open a filehandle, read from the string, write to the string, and most of the other things that...

View Article
Browsing latest articles
Browse All 3 View Live