dshaw21369
Programmer
- Jul 8, 2002
- 64
When I tried to print the output of the array I can't see it. Im compiling on the server and dont know where to look for the output from this file. Can someone please help.
Thanks!
Here is the code:
#!/usr/local/bin/perl
unless (open (XML_EXAMPLE,"</export/home/egate/Perl_Development/XML_IN_PERL.txt"
)
{
print "That file does not exist\n";
exit(1);
}
my (@array)=<XML_EXAMPLE>;
close(XML_EXAMPLE);
my $join_xml = join("\n",@array);
open (XML_EXAMPLE,"</export/home/egate/Perl_Development/XML_IN_PERL.txt"
|| die;
print XML_EXAMPLE $join_xml,"\n";
close(XML_EXAMPLE);
Thanks!
Here is the code:
#!/usr/local/bin/perl
unless (open (XML_EXAMPLE,"</export/home/egate/Perl_Development/XML_IN_PERL.txt"
{
print "That file does not exist\n";
exit(1);
}
my (@array)=<XML_EXAMPLE>;
close(XML_EXAMPLE);
my $join_xml = join("\n",@array);
open (XML_EXAMPLE,"</export/home/egate/Perl_Development/XML_IN_PERL.txt"
print XML_EXAMPLE $join_xml,"\n";
close(XML_EXAMPLE);