Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

Beatnik
  (email not shown publicly)
http://www.ldl48.org/

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [sf.net], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Wednesday January 04, 2006
09:46 AM

Reset?

[ #28231 ]
I just had one of those Pascal flashbacks. In Pascal, the function to reset the filehandle is called, well uhm, reset. In perl, you do a seek on the filehandle and move the line pointer. It turns out reset is also a valid function. I must admit I never used reset before (I think/hope). Reset is

generally used in a "continue" block at the end of a loop to clear variables and reset "??" searches so that they work again.

Am I now a bad perl programmer or am I not the only one who has never used this?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • No, you're not the only one. I doubt there are many people who have ever used it, and I'd be surprised if there were more than a dozen programs in the world that would break if 'reset' would disappear from the next version of Perl.

    'reset' with arguments is even more fun.

    Perhaps the documentation should say no-one actually uses reset.