Results 1 to 3 of 3

Thread: Perl

  1. #1
    Join Date
    Mar 2004
    Posts
    3

    Unanswered: Perl

    Does anyone have a perl example on how to write to a file. I would like to pass in xml or a long delinited ascii and have it create a file.

    Thanks


    Dave
    www.OrderDispatch.com
    www.Pc-Wiz-Inc.com

  2. #2
    Join Date
    Feb 2004
    Posts
    5

    Re: Perl

    Originally posted by dadress2000
    Does anyone have a perl example on how to write to a file. I would like to pass in xml or a long delinited ascii and have it create a file.
    Why just not save xml or long delimited ascii in file directly?

    --
    sad@eltex.net

  3. #3
    Join Date
    Jan 2004
    Location
    Germany
    Posts
    167
    A simple write2file:
    Code:
    my $outfile = 'path/to/your/file';
    open(WRITEFILE,">$outfile") or die $!;
    print WRITEFILE "The first line in the file\n";
    close WRITEFILE;
    board.perl-community.de - The German Perl-Community

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •