Hi,
I can see you have really forgotten Perl ;-)
Try this:
#!/usr/bin/perl
open(FILE,"data.txt");
// data.txt is a flat file. I only want to read it's contents.
@content=<FILE>;
close(FILE);
@cY=();
foreach(@content)
{
@tmp = split (//, file);
push(@cY,@tmp);
}
// cY is a...
Hi,
try this:
$dir=specified_directory
@a_files=<$dir/*.a>;
foreach(@files)
{
system("ar ..options.. $_");
#I don't know ar, therefore don't know which options to use
}
$OUTPUT_DIR=..blabla..
@o_files=<$OUTPUT_DIR/*.o>;
#$OUTPUT_DIR is where ar saves those decompressed files...
Hi SantaMufasa,
are you sure that "yada" doesn't exist in the "user"-table of "mysql"-database anymore, that is, completely erased?
Has someone made changes to the mysql-db within these hours?
Greetings
--
Smash your head on keyboard to continue...
Hi,
I would recommend you to use the CGI-module.
Just:
use CGI;
$cgi=CGI->new();
@selected_items=$cgi->param('my_multiple_select');
foreach(@selected_items)
{
...blabla...
}
Hope that helps
--
Smash your head on keyboard to continue...
Hi,
i see that there is no password for the root if you connect from localhost. Maybe you should change it.
Also, accounts with blank usernames are risky for system security, I would delete them.
Greetings
--
Smash your head on keyboard to continue...
Hi,
Try this:
foreach $mystuff (@filesfound) {
$mystuff=~/([^\/]+)$/;
print "\t$1\n";
}
Greetings
--
Smash your head on keyboard to continue...
Hi,
not:
TO MyUserName@localhost
but instead:
TO MyUserName@% (for all remote hosts, excludes localhost)
--or--
TO MyUserName@xxx.xxx.xxx.xxx (for a specified ip)
Also i'm not sure wether it works on the commandline, because i personally always did it inside mysql, but just try it out as you...
Hi,
per default, the root is only allowed to login a mysql-system from localhost. If you are sure you want to login as root remotely (which is a bad idea), use:
grant all on *.* to root@% identified by "<password>";
But I would recommend you to use another account.
Greetings
--...
correction:
not:
$sth=$dbh->prepare("SELECT * FROM test");
but:
$sth=$dbh->prepare("SELECT something FROM test");
because thats easier for the "print $_;" below.
Greetings
--
Smash your head on keyboard to continue...
Yes, thats the problem, because you chomped it off before you check it, therefore there were only 1312 characters left.
But still look out for the endless loop problem!
Greetings
--
Smash your head on keyboard to continue...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.