I am trying to use Perl to send email via SMTP server, however I cannot receive the mail.
=================
socket(SOCK, AF_INET, SOCK_STREAM, $proto) or return "Socket operation failed : Reason $!";
print "test";
connect(SOCK, pack('S n a4 x8', AF_INET(), $port...
I have a text file "test.txt":
----------
name age address
abc1 20 city1
abc2 15 city2
abc3 45 city3
abc4 19 city4
----------
How can I open this file and print out the new one which is sorted by age? Thanks.
I have a text file "test.txt":
----------
name age address
abc1 20 city1
abc2 15 city2
abc3 45 city3
abc4 19 city4
----------
How can I open this file, and print out the new one sorted by age? Thanks.
If I want to filter the string which has only character(A-z) or number (0-9), and ignore all the others, how can I do that?
for example: valid string is: aVc, a55,Zf2,4r4
invalid: a$g,4_y
I have two questions:
1)I setup the correct date(time) for linux server, why it changes after I reboot system? it seems not related to BIOS time.
how to fix it?
2) I have two hard drive in linux server, now I want to disable one of them, I disable it in BIOS, but linux still detects both hard...
this is probably a dummy question, after I ftp to a site, I can use "get,put" to handle single file, or use "mget, mput" to handle multiple files at the same directory, but how can I ftp whole directory(include sub-directory)?
Thanks for your help.
I can use /[?%.]/ to search the string which contains those character, but how I can search some characters such as "/", "$" etc..., anyone can help me?
This is not my question, I don't want to use the input text box to display the value, how can I get rid of text box and only leave this value so user cannot modify it?
I have html code:
------
<form action=admin.cgi method=post>
<input type=text name=name value="" onChange="this.form.url.value=this.value;">
<input type=text name=url value="">
------
Second text box can update the contents the same as first text box, now I want...
How can I create a html file(now just display on browser) by perl?
Now I can view this html page by:
print load_template("abc.html", {links => $link});
I want to generate a html file which don't have to be called by perl.
I have a login script using AuthCookieHandler, my .htaccess contains:
------
require valid-user
Options +Includes
<Files index.htm>
AddType text/html .htm
AddHandler server-parsed .htm
</Files>
------
which use SSI.
Problem: when I first login, it just shows a list of folders and files, cannot...
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.