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

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.
  • From perlvar:
    Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-)

  • Using Inline::C, of course! :)
  • Instead of something complicated, just write a routine that reads the right number of lines and returns them.
    my @lines = read_lines( $fh, 100 );
    That routine can be as simple as a for() loop. Once you code those five or six lines, relax, put your feet up on the table, and get on with life. :)