zzgulu has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; my ($title,$content,$outdir,$filename,$count); $outdir ='D:/share/out'; open FILE, "D:/share/in/content.txt"; $filename="$outdir/$filename"; open (OUT, ">$filename"."$title"."$count") or die "can't open"; $count=1; while (<FILE>) { chomp; ($title, $content) = split("\t"); $count++; print OUT "$content"; } close (FILE); close OUT; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract and export to multiple files
by GrandFather (Saint) on Apr 09, 2010 at 04:09 UTC | |
by jwkrahn (Abbot) on Apr 09, 2010 at 06:16 UTC | |
by zzgulu (Novice) on Apr 09, 2010 at 13:53 UTC | |
by GrandFather (Saint) on Apr 09, 2010 at 21:51 UTC | |
by zzgulu (Novice) on Apr 10, 2010 at 02:18 UTC | |
by GrandFather (Saint) on Apr 10, 2010 at 05:09 UTC | |
| |
by umasuresh (Hermit) on Apr 09, 2010 at 14:49 UTC | |
|
Re: extract and export to multiple files
by kiruthika.bkite (Scribe) on Apr 09, 2010 at 03:55 UTC |