|
Hello, is there a way to make this work? (write the out_file to my home-directory)
#!/usr/bin/perl use warnings; use strict; use File::Spec::Functions; use File::HomeDir; use DBI; my $database = 'my_db'; my $table = 'my_table'; my $user = 'user'; my $...
Started by sid_com on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you running the script as a user that has permissions to write to that directory?
(ops sorry I meant to write this as a comment :/ I fail)
# DBD::mysql::db do failed: Can't create/write to file '/home/user/out_file.csv' (Errcode....
|
|
Could you please correct my code below.
#!/usr/local/bin/perl open (MYFILE, '>>data.xml'); print MYFILE "<?xml version="1.0" encoding="UTF-8"?>\n"; close (MYFILE);
Updated.
#!/usr/local/bin/perl open (MYFILE, '>>data.xml'); print MYFILE...
Started by Nano HE on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I would recommend to use the backslash or surround your print string... .
Print MYFILE qq{<?xml version="1.0" encoding="UTF-8"?>\n};
Your problem is that you had nested double quotes; using qq{} to delimit the string will solve this issue.
|
|
What is simple solution what is effective solution to less minimum memory and(or) cpu speed?
Started by praveen on
, 30 posts
by 29 people.
Answer Snippets (Read the full thread at stackoverflow):
28 +/- 3e-11
seems and has responded to a number of... .
The buckets get:
value Count Error% 1 11158 -0.0035 2
By switching to a sum of
n Error% 10 +/- 1e-3, 12 +/- 1e-4, 14 +/- 1e-5, 16 +/- 1e-6, ...
It's off by about 2 parts in 1000.
|
Ask your Facebook Friends
|
I posted this on the maintenance thread but it is being flooded with people calling each other idiots so i am making a thread for visibility.
I use comodo:
Make sure you have ports 80 443 563 and 56056 enabled.
Network Security Policy >> Port Sets...
Started by ForumsGuyHere on
, 20 posts
by 11 people.
Answer Snippets (Read the full thread at lineage2):
SOURCE LINK Enabled the ports, and still getting the....
And this works for me (also repost):
I have sucessefully solved this stupid Error 0.
|
|
On Tue, 12 May 2009 00:34:02 -0700, Franken Sense <frank@example.invalid
With forum help, I've been able to do pretty good damage with using perl
for input. It's *so much* easier than my alternatives with compiled
languages that I really feel ...
Started by Franken Sense on
, 22 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
And output files
close($gh) or die("Error closing $filename2: $!");
close($fh) or die("Error closing files
close($gh) or die("Error closing $filename2: $!");
close($fh) or die("Error closing $filename input and output files....
|
|
On Fri, 15 May 2009 05:47:07 -0700 (PDT), Ameya <ameya.r.sathe@gmail.com
Hello,
I have a directory with about 4000 CSV files (19MB each). I list the
files in another TXT file and then read each line and store it a $file
variable. I open $file which...
Started by Ameya on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at omgili):
Did you get any error messages?
If so, what did "print scalar reverse qq/moc.noitatibaher\100cmdat/".
There is no $file variable in the code you have posted .
|
|
On Thu, 7 May 2009 11:20:01 -0700, Franken Sense <frank@example.invalid
How do I write a get_script() for data that look like these:
44:004:037 Having land, sold it, and brought the money, and laid it at
the apostles' feet.
44:005:0...
Started by Franken Sense on
, 18 posts
by 9 people.
Answer Snippets (Read the full thread at omgili):
";
}
# write modified fields to output file
my $outline = join(' ', @s);
print $gh "$outline\n";
}
# close input and output files
close($gh) or die("Error closing $filename2: $!");
close($fh) or die("Error/;
# print ....
|
|
1> Build started: Project: gddlcs, Configuration: Debug Win32
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>MyComplex.cpp
1>gddlcs.cpp
1>c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(234) ...
Started by xc_2009yu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at csdn):
问题解决了么? 没写using namespace
使用namespace空间了,就得声明一下吧 参考下这篇文章:error C3083: 'Office': the symbol.
|
|
Hello,
SUMMARY:
I installed cygwin 1.7.5 on windows 7 (64 bit OS), and when I run some
command which uses perl, I get the following error:
0 [main] perl 2528 C:\cygwin\bin\perl.exe: *** fatal error - Internal
error: TP_NUM_W_BUFS too small.
DETAILS...
Started by nma@12000.org on
, 14 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
Error while converting image
Error: Cannot read 'img2.png error -
Internal....
Cmsy10.pfbConverting image #2
0 [main] perl 4752 C:\cygwin\bin\perl.exe: *** fatal error -
Internal error: TP_NUM_W_BUFS too small.
|
|
On Tue, 7 Jul 2009 13:39:04 -0700 (PDT), "dn.perl@gmail.com" <dn.perl@gmail.com
I am reading a set of strings, and then writing them out to an Excel
sheet using WriteExcel module. Some strings seem to have the format of
a formula, and the module...
Started by dn.perl@gmail.com on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
To simplify the process of writing....
$subject = qq("$subject") if ($subject =~ /^=/);
< the Spreadsheet::WriteExcel module?
If so, then according to the documentation for the write module:
"Excel.
As a string instead of a formula.
|