look in to the alarm() function
perldoc -f alarm
+Pete
--
[EMAIL PROTECTED]
;;($_='Yw_xUabcdtefgdijktljkotiersjkUzxT
yvlkbfdtcierstajogvPruntRshackRJelov')=~
y&/RTUv;wxYz$&/ ~'/;$=();$&&&eval&&print
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'
Find out your Perl PID, find out the user who's running it, and kill their
session using `kill`?
+Pete
"Bob Showalter" <[EMAIL PROTECTED]> wrote in message
2E4528861499D41199D200A0C9B15BC031B508@FRISTX">news:2E4528861499D41199D200A0C9B15BC031B508@FRISTX...
> > -Original Message-
> > Fro
open(NAMES, "names.txt")||die "$!";
($result = join '', )=~s/\s+/ /g;
+Pete
--
[EMAIL PROTECTED]
;;($_='Yw_xUabcdtefgdijktljkotiersjkUzxT
yvlkbfdtcierstajogvPruntRshackRJelov')=~
y&/RTUv;wxYz$&/ ~'/;$=();$&&&eval&&print
"Walter Valenti" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> `"$batch" "$name"`;
> #! doesn't work - and that's the clue of my problems
>
> and also system doesn't want to work with $batch and $name as it's
parameter
`` interpolates.
You probably want:
`"$batch $name"`;
or some permutation of.
Happy to help
+Pete
--
[EMAIL PROTECTED]
;;($_='Yw_xUabcd
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
005101c1610c$68da3fc0$[EMAIL PROTECTED]">news:005101c1610c$68da3fc0$[EMAIL PROTECTED]...
hi.
in this site exist many module...
http://www.sunsite.ualberta.ca/Documentation/Misc/perl-5.005_03/
__
It may be worth
>If I remark (#) the read_config(); in the while loop the daemon doesn't
>break. Does any one here have any suggestions?
How does it die? &read_config() does contain a die string ... are you
getting something similar to:
cannot open '$tunnelfile': no such file or directory
Or is it some other m
"Gary M Rocco" said
qq! When i used to program in BASIC, I had a reference card that listed all
the instructions, variables and operators in alphabetical/numerical order.
It also had brief descriptions of usage and syntax rules.
Is something similar available for perl? !
May I suggest:
Perl 5
> What I don't yet understand is the other direction: How do I make
> individual configuration variables, taken from database.cfg, available in
> the modules or db.cgi? I guess that would be a job for "require", but am
> not sure.
You have a number of options. My prefered one is to do this:
(opt
Troy,
You didn't specify what you error was ... can I suggest you thoroughly read
the docs in perlfunc about require ... http://www.perldoc.com would be a
good place to start, or even just typing 'perldoc -f require' at your
friendly neighbourhood command line.
If options.txt isn't perl code and
Kurt,
> if ($client ne $newclient and $method ne $newmethod){
> print "something\n";#I'll actually be
> printing this to my report once I get this worked out
> }
I think what you want is:
if (($client ne $newclient)&&($method ne $newmethod)) { ... }
This is c
>> Nafiseh wrote:
> thx a lot...
> but
> do u know that ..is it possible that router put their data
> in database and not in file...to process it faster..
>
Nafiseh,
That really depends ... databases can be faster, but then so can text files
...
o http://www.perl.com/pub/a/2001/04/10/engine.
Nafiseh,
The first rule of optimisation is:
"Don't talk about optimisation".
The second rule of optimisation is:
"Don't talk about optimisation".
The third rule of optimisation is:
"Don't optimise".
More seriously, if you're having to optimise your code to run faster, you
probably shouldn't be
> @hosts = ( list of hashes like below ... );
> %hosts = ( name => "hostname",
> ipaddr => "www.xxx.yyy.zzz",
> location => "location"
>);
>
> How can produce a sorted list of the hashes based on the hostname and then
> access each hash to print the details.
>
@hosts = sort { %{$a}
How do I insert $scalar into position $x of @array, where $x is smaller than
$#array?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> My question is:
> Do the username and passwd have to be hardcoded in the
> script or can I pass these values from a file? Does
> ftp have any way of getting credentials (at least for
> the password) from an encrypted file?
Depends on how the files are encrypted. What I would suggest is writing
"Indiainfo" <[EMAIL PROTECTED]> wrote in message
007701c14280$12138200$[EMAIL PROTECTED]">news:007701c14280$12138200$[EMAIL PROTECTED]...
I have a text file, which contains some mail ids among other text. Is
ther some way by which i can extract all the mail-ids into another text?
Sure!
I don't know the answer to your question, but...
You can download the PPM files seperately from activestate:
http://www.activestate.com/PPMPackages/zips/5xx-builds-only/
You can then use PPM to install them, but I think that part's covered in the
readmes.
"Reg Smith" <[EMAIL PROTECTED]> wrote i
> It works fine on Windows NT. On Solaris, it gives the foll error message:
>
> Can't locate Win32/Process.pm in @INC (@INC
> contains: /usr/perl5/5.00503/sun4-so
> laris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris
> /usr/perl5/site
> _perl/5.005 .) at sim.pl line 3.
> BEGIN failed
Some other notes...
You don't have to use printf - you can use print. And you don't need the
brackets, or the inverted commas around $path:
if ($path =~ m/^\$/) {
print "Path is env var\n";
} else {
print "Working on phys.dir\n";
}
> > if ( "$path" =~ /^$/ ) {
> >printf("p
"Craig Paterson" <[EMAIL PROTECTED]> wrote in message
021601c13a9a$bae3f240$0925020a@avalon">news:021601c13a9a$bae3f240$0925020a@avalon...
> is this possible? or is there another library
> i should use? I looked at the HTTP library but
> can't see how you would do it and save the file.
LWP is yo
Pierre the Fighter Pilot Wrote:
---
As some of you know... developing TK can be time consuming. Does anyone
know, even in its simplest form, of a perl TK IDE tool? Idealy on the
windows platform. Perl Builder doesn't really have a VC++ style IDE where
you can create yo
No. It's *VERY* illegal.
"Brett W. McCoy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Sat, 14 Jul 2001, Mark Winchester wrote:
>
> > Just found this posted on another site. Many free Perl
> > books.
>
> Is it legal to put those on the web like that? It
>1. where( & how) to write code in perl script(HTML) for actions
>to occur on clicking hyperlinks .
In my very humble opinion, your best option here is to pass the script
information using the query_string. So, for example:
http://localhost/la.pl?sample_data
'sample_data' is then available from
> In my case, all GET requests are full URI's, so that's not a problem. The
> problem is that the page you referred to makes no mention of the CONNECT
> header, which is supposed to preface the GET request. The CONNECT is
> supposed to have the URI of the proxy server to send the GET request
throu
That which I say three times it true:
Do not trust user input. Do NOT trust user input. DO NOT TRUST USER INPUT.
As mentioned, users can turn off javascript. You're assuming of course that
skr!pT k1DD13s use browsers. It is trivial to build an HTTP request and
telnet into the server at port 80.
>Are there modules that will allow me to read from and write to tape on a
record or block basis?
(a) Where have you looked? Have you tried http://www.cpan.org and
http://www.google.com ?
(b) You can always write a Perl module to wrap around a driver in C, which
I'm sure will exist.
{Pete
> I need to know if my browsers are sending IMS calls to the web server to
> fetch html, images, etc. Is Perl able to watch the data returned to the
> browser and tell me if IMS calls occurred?
Hi there,
If the browsers are local and the server are remote, you could setup a proxy
server (I'm sur
> open CSV,"
28 matches
Mail list logo