Re: Updating my IP address in real time

2012-05-03 Thread Terry Shepherd
On Thu, May 3, 2012 at 1:35 PM, Lawrence Statton wrote: > On 05/03/2012 01:02 PM, Terry Shepherd wrote: > >> Wow. >> >> Thanks for the fast response. This is amazing. >> >> > You're welcome. I'm pretty sure on this list, the custom is not to &

Re: Updating my IP address in real time

2012-05-03 Thread Terry Shepherd
:25 PM, Terry Shepherd wrote: >> >> For a project at work, I need to have my development machine here at >> my house reachable via a name. >> >> I don't have static IP from my ISP (they offer it, but it's an >> expensive add-on). >> >> I have

Updating my IP address in real time

2012-05-03 Thread Terry Shepherd
For a project at work, I need to have my development machine here at my house reachable via a name. I don't have static IP from my ISP (they offer it, but it's an expensive add-on). I have the router configured so that if you go to http://205.178.x../mypage you get to my server, but I need to hav

is there //= operator?

2011-08-02 Thread terry peng
I have forgot that, is there a //= operator in Perl? which should do the same stuff as: unless (defined($foo) ) { $foo = ...; } Thanks.

Re: How to recognize apache authentication

2011-04-07 Thread terry
should be able to get better answer from the mod_perl mailing list: http://perl.apache.org/maillist/modperl.html -- terry - te...@geekmail.de -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Programmatically check for syntax errors without compiling the code

2011-03-29 Thread terry
2011-3-29 14:04, Magnus Woldrich: Can't see any message body but with two attachments. I'm using thunderbird 3. -- terry - te...@geekmail.de -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Filling in an online form.

2011-03-28 Thread terry
story, CGI programming with Perl: http://oreilly.com/catalog/9781565924192 -- terry - te...@geekmail.de -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

RE: PROBLEM

2011-03-25 Thread terry
> -Ursprüngliche Nachricht- > > How to detect file upload abort using an upload hook in perl. When > client aborts the upload i need to remove the info about the file > from > the db. I can't do it size base, because before upload ends i only > have an approximate file size (request + fil

Re: foreach loop

2011-03-20 Thread terry
an}\n"; } } } And Data::Dumper could help you find out the complicated data structure. terry. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Read and change the file

2011-03-17 Thread terry
于 2011-3-17 17:23, wisma laili 写道: I have problem in reading a file and change it to get some specific output. For example : I want to read a file : filename.txt which contain 2 lines: Data A 1 2 3 4 5 Data B 6 7 8 9 10 the name of the data and the values are tab separated. my wish is to chang

Re: how to handle "up movement key" in perl

2011-03-15 Thread terry
ss, you may want the Term::ReadLine module on CPAN for the case. terry. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Simple messaging program.

2011-03-15 Thread terry
于 2011-3-16 8:31, Daniel Calvo 写道: while (<$fh>) { print; } For the first look, you shouldn't be using <> for receiving data from the socket. For more details, please loot at this article and its comments: http://www.perlfect.com/articles/select.shtml -- To unsubscribe, e-mail:

Re: Using perl to automate add user on linux/freebsd systems

2011-03-14 Thread terry
于 2011-3-15 11:11, Ted Mittelstaedt 写道: On 3/14/2011 11:59 AM, siegfr...@heintze.com wrote: Does anyone know the perl API (presumably on CPAN) for useradd/userdel/usermod to automate the manipulation of users on FreeBSD systems? On Linux systems? You might look at these modules on CPAN: Prov

how to validate the string is Chinese only?

2011-03-09 Thread terry peng
Hello, I got the form value from web client, and I want to validate the value string include Chinese words only. How to do this? Thanks in advance. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Regular expression to delete from a string unseen characters

2011-03-07 Thread terry peng
> > I have a data that contain unseen characters that I want to delete. > The unseen characters can be ^L, ^N and other sign that I cannot copy but I > see them in my data. > > Is someone know which regular can help me. May you try the "dos2unix" command? -- To unsubscribe, e-mail: beg

Re: Auto correction of typos

2011-03-06 Thread terry peng
Sat, 5 Mar 2011 12:23:49 +0530 письмо от Ramprasad Prasad : > I have a web form where people sign up for updates by filling in their email > address > > A lot of users end up not receiving the confirmation mailer because of typos > in the email id > Like yhaoo.com or hotmaill.com > MaxMind

Re: How does the function loading works in Perl

2011-03-02 Thread terry peng
2011/3/3 Parag Kalra : > Hi, > > I have this basic question from a long time now, so thought of asking. > > A Perl script may have many functions. When we execute the script via Perl > Interpreter, does all the functions are loaded into memory? > Though there is a stuff called "AUTOLOAD", but I th

Re: How to list all Linux machines info with perl ?

2011-02-28 Thread terry peng
Try again with Net::SNMP. 2011/3/1 sync : >  Hi, all : > > > I have many linux machines connected in a network. > Now I want ot create a perl script which will list all the machines info  in > a network. > > > Like the following : > - > Host:  xxx > OS:  xxx > Kernel :xxx >

Re: Threads and garbage collection

2011-02-23 Thread terry peng
2011/2/24 Shlomi Fish : > On Wednesday 23 Feb 2011 18:52:30 siegfr...@heintze.com wrote: >> I apologize if this appears multiple times. When I did not see it >> appear, I posted again. >> >> >> Does perl have a feature like C# and Java where memory is reclaimed and >> defragmented? >> >> >> I just

about perl -wl

2011-02-22 Thread terry peng
Hi, when I put this line in a script say a.pl: #!/usr/bin/perl -wl ... And later I run it from the command line: perl a.pl so, does this make perl ignore the "wl" switch in the script? Thanks. -- Free SmartDNS Hosting: http://DNSbed.com/ -- To unsubscribe, e-mail: beginners-unsubscr...@per

Re: Calling a PHP function from a Perl script.

2011-02-18 Thread terry peng
Fri, 18 Feb 2011 11:53:02 -0600 письмо от "Mike Blezien" : > Hello, > > this is kinda of a crossover to PHP which I'm not that fimilar with. > > I have a Perl script that needs to call up a specific function from a PHP > script, Entry.php calls "Social_preformPost()" function. I simply need

return ()

2011-02-10 Thread terry peng
does "return ()" mean return an empty list, or just mean "return" since "()" is optional in Perl? thanks!

Re[2]: about return

2011-02-10 Thread terry peng
Thu, 10 Feb 2011 10:04:55 +0200 письмо от Shlomi Fish : > > In List context it will return an empty list. You may have meant in scalar > context in which case: > > Sorry , my typo. I did mean the scalar context. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional com

Re[2]: about return

2011-02-09 Thread terry peng
Wed, 9 Feb 2011 22:44:10 -0800 (PST) письмо от "C.DeRykus" : > On Feb 9, 10:07 pm, terry.p...@mail.ru (terry peng) wrote: > > hello, > > > > when in the case "return undef" I prefer just "return" coz in list context > it will return

Re[2]: about return

2011-02-09 Thread terry peng
> > return 1 if $exists ; > return ; > > then it is easy to see what conditions will return what values. no need > for if/else blocks or noisy ?: ops. > That's a good solution. Thanks much. :) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginner

about return

2011-02-09 Thread terry peng
hello, when in the case "return undef" I prefer just "return" coz in list context it will return an empty list. my $exist = ... if ($exist) { return 1; } else { return; } the code above can work, but having many lines. So I want: return $exist ? 1 : (...); what should be put in (...)

text encoding

2011-02-08 Thread terry peng
Hello, How to know that the given text is with which encoding method? for example, is it ISO-8859-1, UTF-8, KOI8-U, or others? Thanks.

Re: config file modules confusion

2011-02-07 Thread terry peng
Mon, 7 Feb 2011 18:11:01 -0800 (PST) письмо от Jim Green : > Hello > I searched cpan and was overwhelmed by the number of modules > available. > > I want a config module that can do updates well, preserving formats of > original file, preserving blank lines, comments, etc. which one should >

Re[2]: perl's threads

2011-02-07 Thread terry peng
Thanks Shlomi. Your statement is a great guide to perl threads to me. I'm checking the AnyEvent module which looks wonderful. Thanks again. Mon, 7 Feb 2011 12:30:32 +0200 письмо от Shlomi Fish : > > Well, let me quote the perlbot ( on Freenode's #perl ) factoid: > > [quote] > >Before

Re[2]: Attachment in Excel format?

2011-02-06 Thread terry peng
Sun, 06 Feb 2011 18:18:09 -0800 письмо от David Newman : > > This is a multi-part message in MIME format. > > --_--=_1297044547631150 > Content-Disposition: inline > Content-Transfer-Encoding: 8bit > Content-Type: text/plain > > Here's the GIF file you wanted > --_--=_1297044

Re[2]: perl's threads

2011-02-06 Thread terry peng
Sun, 06 Feb 2011 16:21:58 +0100 письмо от "Dr.Ruud" : > On 2011-02-06 12:12, terry peng wrote: > > > What's the suggested module for perl's threads? > > I have been using Perl 5.12 under linux. > > Stay away from threads. Design and develop in a

Re: Attachment in Excel format?

2011-02-06 Thread terry peng
what's the message header you got in thunderbird? Have you set the "Disposition" option to "attachment" rather than the default "inline"? Regards. Sun, 06 Feb 2011 15:38:44 -0800 письмо от David Newman : > Greetings. I'm looking for a way to run a query against a SQL database, > save the resu

Re[2]: perl's threads

2011-02-06 Thread terry peng
Sun, 06 Feb 2011 08:54:50 -0500 письмо от Shawn H Corey : > On 11-02-06 07:10 AM, Octavian Rasnita wrote: > > From: "terry peng" > >> What's the suggested module for perl's threads? > >> I have been using Perl 5.12 under linux. > >> &

perl's threads

2011-02-06 Thread terry peng
What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Thanks.

Re: piece of Perl code needed for tracking clicks

2008-12-09 Thread Terry Grant
or die ("Could not open!"); $num_hits = ; close COUNT; $num_hits++; open COUNT, ">$counter_log" or die ("Could not open file for writing!"); print COUNT $num_hits; close COUNT; -Terry Grant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: removing an arbitrary element from array

2008-12-05 Thread Terry Grant
t). Then if you needed all of that data back into the original array format you could dump this hash back into the array (minus the one you removed of course). I hope this helps, provided I understood the problem correctly. If not let me know and I'll try to help further. Terry

RE: Hash headaches

2005-03-07 Thread Terry Poperszky
it. Terry Poperszky chomp (@directory = `dir /b /O-D`); open MYFILE, ") { chomp (); $dir_log{$_} = 1; } foreach (@directory) { print $_ if (exists $dir_log{$_}); }

Hash headaches

2005-03-04 Thread Terry Poperszky
listing of the current files in the directory $dir_log currently is file containing the same information as $directory. I am trying to see if the elements of $directory exist as keys in the hash, but it isn't working. Suggestions/Observations? Terry Poperszky 801-257-5709

Is there a way to get a PID from a process name?

2004-05-12 Thread Michael Terry
Hi, I've got this shell script: #!/bin/sh ps axc|awk "{if (\$5==\"$1\") print \$1}"; ... which gets a PID if you feed it the process' name. Is there a way to translate this into Perl using a standard Perl distribution? I mean, without calling 'ps'; I've learned enough Perl now to be able to do

Re: Program to write code

2004-01-30 Thread Terry Ashley
Marcelo wrote: Hi, could anyone recommend a good program to write code, currently using notepad. Thanks a lot in advance. Marcelo I use Textpad, which is a really great editor, that has allot of the functionality that other commercial apps like CodeWarrior and Visual SlickEdit have. -- To uns

RE: Email function question

2003-01-28 Thread .IT Workflow - Terry Honeyford
Have you tried put a semi-colon and space on the end of each users name? @names=([EMAIL PROTECTED]; ,[EMAIL PROTECTED]; ,[EMAIL PROTECTED]; ); Terry -Original Message- From: Scott, Deborah [mailto:[EMAIL PROTECTED]] Sent: 27 January 2003 22:54 To: [EMAIL PROTECTED] Subject: RE: Email

RE: Sybase DBlib & CGI issue

2003-01-13 Thread .IT Workflow - Terry Honeyford
as far as I can make out, apache needs to be running as a sybase user, you may also need to set some $ENV variables within the script eg: $ENV{'DSQUERY'}='SQLCAS' HTH Terry -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 17

RE: perl and DB connectivities

2002-09-24 Thread IT Workflow - Terry Honeyford
Title: RE: perl and DB connectivities you could try this little routine, After opening the connection and making the query:- while(($rc = $X->ct_results($restype)) == CS_SUCCEED) {     next if ($restype == CS_CMD_DONE || $restype == CS_CMD_FAIL || $restype == CS_CMD_SUCCEED);     @

$ENV{remote_user} - solved

2002-02-22 Thread IT Workflow - Terry Honeyford
Thanks to all who sugested that I needed to Define an authentication realm for my CGI directory That did the trick! terry On Thu, Feb 21, 2002 at 02:42:31PM -, IT Workflow - Terry Honeyford wrote: > but when I use Apache 1.3.22 I don't get as many $ENV's back from >

$ENV{remote_user}?

2002-02-21 Thread IT Workflow - Terry Honeyford
ENV's back from the server, in particular the one my script is looking for - ($ENV{remote_user}) has anyone any idea why this is happening? TIA Terry

Re: Hash Question

2002-02-01 Thread Terry Dignon
nsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Terry Dignon <[EMAIL PROTECTED]> "I stand by all the misstatements I have ever said" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Stripping windows CR/LF characters

2002-01-28 Thread IT Workflow - Terry Honeyford
chomp'ing would be the line feed) I think that's whats going on anyway! Thanks for all your help Terry Honeyford On Fri, 25 Jan 2002, IT Workflow - Terry Honeyford wrote: > I am trying to print out only the lines that begin with Either "Unable to > attach to", OR "

RE: Stripping windows CR/LF characters

2002-01-25 Thread IT Workflow - Terry Honeyford
original line the continues as though the OK/Not OK has overprinted it! EG: Unable to attach to Drive C: becomes Unable tNOT OKch to Drive C: Whereas what I am looking for is:- Unable to attach to Drive C: NOT OK Hope this makes the problem clearer! Many thanks for your help Terry Honey

Stripping windows CR/LF characters

2002-01-25 Thread IT Workflow - Terry Honeyford
don't know what characters are at the end of lines on a windows machine. Can anyone help? TIA Terry Honeyford -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Web page data collection help needed

2001-12-17 Thread Terry
Hi all I'm a complete Perl newbie so please treat me gently :) I have installed ActivePerl V5.6.1 and also libwww-perl-5.62 and have gained a VERY basic understanding of Perl. I have programmed databases using BASIC type languages in the past, but interaction with the Web is a completely new bea

RE: counting files of a directory

2001-07-30 Thread IT Dept - Terry Honeyford
to count the listing you could try $number = `ls /path/to/directory|wc -l`; tmtowtdi? terry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fwd: Net::Telnet - It works now, but why?

2001-07-24 Thread Terry Poperszky
still open? Is it testing the actual TCP session status? A little enlightenment would be greatly appreciated. BTW, Stein's "Network programming with Perl" is an excellent resource for these types of scripts. Terry Now the program works for me as expected, with one exceptio

Net::Telnet

2001-07-24 Thread Terry Poperszky
referring to the port pramaters of the Telnet session and not the problem that I am experiencing. Any and all help would be appreciated, -- Terry Poperszky [EMAIL PROTECTED] my ($report, $t, $hostname); $hostname = "tsa038"; use Net::Telnet; $t = new Net::Telnet; $t->open(Host

MCPAN

2001-07-18 Thread Terry Poperszky
Question? How do I set MCPAN to use passive FTP connection? Terry

RE: page generation

2001-07-18 Thread IT Dept - Terry Honeyford
I for one, am really grateful Terry ...-Original Message- ...From: Ross, Jonathan C. [mailto:[EMAIL PROTECTED]] ...Sent: Tuesday, July 17, 2001 6:03 PM ...To: 'IT Dept - Terry Honeyford' ...Cc: '[EMAIL PROTECTED]' ...Subject: RE: page generation ... ... ...> Thanks f

RE: page generation

2001-07-17 Thread IT Dept - Terry Honeyford
hen printing to PAGEOUT, have I got it all wrong? I Have marked the line in script below, I would be really gratfull for any suggestions on how to cure this.. TIA Terry ... ...foreach $NEWPAGE (@pages) ...{ ... chomp $NEWPAGE; ... open(PAGEIN, "<$path/ExhibitionFolde

page generation

2001-07-17 Thread IT Dept - Terry Honeyford
has got to be simple, but It's got me foxed Can anyone help? TIA Terry if ($Exname ne ""){ $Exname =~ s/ /""/gs; $ExFoldername = $Exname."_Folder"; if (!-e "/web/html/ExhibitionFolder/98/$ExFoldername") { `mkdir /web/h

RE: ICQ Trouble

2001-06-19 Thread IT Dept - Terry Honeyford
not sure about this, but you could try using a semi colon as the delimiter between the "To; CC; Subject; Message;" fields in the mail header terry ...-Original Message- ...From: Markus Peter [mailto:[EMAIL PROTECTED]] ...Sent: Tuesday, June 19, 2001 2:23 PM ...To: [EMAIL

RE: readline fails on Sun machines?

2001-06-11 Thread McIntyre, Terry
Thanks to those who helped point me in the right direction. I looked at the man page, http://www.perldoc.com/perl5.6/pod/func/readline.html, and found two forms: readline(*STDIN) and readline; the form which I used (readline STDIN) was not mentioned. The second form uses an inline form or re

readline fails on Sun machines?

2001-06-11 Thread McIntyre, Terry
THe following code works on my AIX machines, but not on Solaris machines. All are running Perl 5.005_03. What's the story? Thanks! #!/usr/local/bin/perl -w print "account = " ; $account = readline STDIN ; chomp($account); print "account: $account\n";

FW: could not move file

2001-06-05 Thread IT Dept - Terry Honeyford
lid header (name without value: got line 'could not move file illegal seek at /admin_tfoak line 322.") the queer thing is that it actualy moves the file then dies! Any ideas what is going on here? TIA Terry snip -> 320if ($query->param("dcomp")) { 321&a

could not move file

2001-06-05 Thread IT Dept - Terry Honeyford
ader (name without value: got line 'could not move file illegal seek at /admin_tfoak line 322.")   the queer thing is that it actualy moves the file  then dies!   Any ideas what is going on here?   TIA   Terry       snip ->   320    if ($query->param("dcomp")) { 321    &a

RE: Beginners Database Question

2001-05-15 Thread IT Dept - Terry Honeyford
Title: RE: Beginners Database Question This looks like just what I am after doing, but we run Netscape fastback server can anyone point me in the right direction? TIA Terry ...Eric B. Leslie wrote .. ... ...>    I'm experimenting with putting a db backend on ...everything. ...

good list

2001-04-20 Thread IT Dept - Terry Honeyford
Title: good list Not quite on topic this - but gotta say this is a really usefull list. Thanks to all who organised the list and all the kind folks that answer us newbies in a way even I can understand! Terry

RE: Use Strict

2001-04-20 Thread IT Dept - Terry Honeyford
Title: RE: Use Strict What does exactly does use strict do? ...1. I strongly suggest using the pragma ... ...   use strict; ... ...   It will force you to write less error-prone code.