Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Tear it apart...select()by Chmrr (Vicar) |
on Mar 01, 2003 at 22:08 UTC ( [id://239772]=note: print w/replies, xml ) | Need Help?? |
select changes the current filehandle, and returns the old one. So that construct changes the current filehandle to STDERR, unbuffers it (with $|++), then selects the 0th element of that list -- which happens to be the return value of the select, which is the original filehandle. That filehandle is then selected. perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|