[Gllug] Perl Problem

Dean Wilson dwilson at unixdaemon.net
Thu Feb 1 06:48:45 UTC 2007


On Thu, Feb 01, 2007 at 12:24:17AM +0000, Tethys wrote:
> 	split -l 70 huge_file.txt

> But of course, that wouldn't help with your perl programming homework,
> would it?

I love the smell of cynicism in the morning ;)

If you have to do it in perl I'd normally suggest CPAN (this seems like a
common wheel) but the most obvious choice (File::Split) doesn't want to
install for me.

But Tethys is right, use split.

  Dean
PS -
#!/usr/bin/perl -w
use strict;
use warnings;

`split -l 70 huge_file.txt`
-- 
Dean Wilson		http://www.unixdaemon.net
Profanity is the one language all programmers understand
  --- Anon
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list