Weird Usage Of “select” in perl

Posted by shantzg001 on Feb 17, 2010 2:36 AM EDT
Safer Code; By Shantanu
Mail this story
Print this story

Many times while going through some perl code, you must have come across snippets like “select((select(fh), $|=1)[0])” and wondered what this means, even though you might know that: * $|=1 is used for setting autoflush (i.e. unbuffered data output) and that * select is used to set the default output to a given file handle instead of STDOUT

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.