|
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.
|
|
Hello,
I have installed a fresh copy of Yabb 2.4 on a NEW host.
I have inquired and received the corrrect shebang line and changed the appropriate files although not sure if that was necessary since it is a Windows server.
I am getting an error when I...
Started by TickToo on
, 71 posts
by 5 people.
Answer Snippets (Read the full thread at yabbforum):
I have been running Gold vs 1.3.1 for ever and vs level detail on the error....
Bin/yabb2 folder and all its child content to read/write/modify thinking I may have missed something settings in forum config, which throws the CGI error.
|
Ask your Facebook Friends
|
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.
|
|
I do a lot of TSM work and I embarked on what I thought would be an easy task, and I'd be very happy for any input to save the pounding my keyboard is receiving :]
By default, the output of TSM's console has no timestamping, making it hard to sort through...
Started by Vryali on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at unix):
Code: $ cat script.pl use warnings; use strict; open my $ofh, qq/>/, $ARGV[0] or die $!; select $ofh; $| = 1; select \*STDOUT....
Will write output to first parameter file in command line with date inserted at the beginning of each line.
|
|
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 ....
|
|
Linux QQ for 64位版DEB包,使用时如果不能正常输入汉字,请在输入区点击鼠标右键更改输入法选项!
Started by zjj_xuefeng on
, 15 posts
by 1 people.
Answer Snippets (Read the full thread at ubuntu):
In buffer_copy (failed to write to pipe in copy)
dpkg-deb: subprocess paste returned error exit下载来试试看哈 原生64位的么?
经过解压发现还是32位的程序,64位用32位的库。。唉。。。谁能找QQ弄个原生64位的。。。 不错啊,可以安装 jarryson 写道: 原生64位的么?
经过解压发现还是32位的程序,64位用32位的库。。唉。。。谁能找QQ....
|
|
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.
|