![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 05 Feb 2003 @ 22:20:21 GMT
Sajid, You've got two Perl options that I can see. 1) You can use Tie::File, which is (the last time I looked) part of the standard Perl distribution. Look here: www.theoryx5.uwinnipeg.ca/CPAN/data/perl/Tie/File.html for information. 2) You can use regular perl commands (print and length come to mind) to write the file in chunks of a size of your choosing. The general idea is to print in a loop while summing the chunk sizes with length, breaking the loop when you reach that size. I love telling people about Perl, but it's not really the focus of this list, so let me instead give a reference for Perl similar to this list, and note in passing that commercial support for Perl is available from various companies. www.perl.org/ is the place to look. On the left hand side of the page, you'll see a listing for Perl Mailinglists. I recommend trying comp.lang.perl.moderated first. Your question is basic, so that's the place to start. I suspect that our host John is becoming a bit impatient with somewhat off-topic Perl questions, so let me beat him to the punch and suggest that such questions be taken there first and brought here should they become Teradata-specific. Thanks, John A
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 30 Jun 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||