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...
Also, your program wouldn't terminate if there is a line with 1313 characters, look at this endless loop:
while (length($line) == 1313){
print OUTPUTFILE $line;
}
Greetings
--
Smash your head on keyboard to continue...
Hi,
are you sure that in '/u02/35bad.dat' at least one line has ecxatly 1313 characters without the "\n"? If not, it's no wondering that nothing will be printed. Also, is this a text file or binary file? Does it run under Windows or Liunx?
Greetings
--
Smash your head on keyboard...
Hi,
I found the problem: It seems that revoke doesn't exactly work as I thought on the newer versions of MySql(It doesn't delete the account). Try instead deleting the user yada manually with(as root):
use mysql;
delete from user where user="yada";
delete from db where...
Hi arn0ld,
could please nearer explain it? I thought @ARGV is only used for reading from the command line, or am I false?
Greetings
--
Smash your head on keyboard to continue...
Hi,
i had tried your script (but maybe what i'm now going to say is totally shi**)
foreach (@RULES) {
print "Word: $_ <BR>";
if ($html =~ /$_/sig) {
...
maybe you should just use "if ($html =~ /$_/i)".
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.