I think that also including how many original articles had a reply, and how
many had no reply, would be a useful statistic which would show the level of
(or lack of) line noise.
This data might be used to advertise the quality of the list, maybe at
http://learn.perl.org
Thoughts?
Carl
> Weekly
Hi all,
I realise that a Perl script is comiled just before it is run, and that
there is no need to pre-compile a Perl script. However, it is the only
way that I can think to be able to leave a Perl script at a customer's
site without them being able to see/change the code.
I've read the code ge
on Tue, 18 Jun 2002 07:54:49 GMT, [EMAIL PROTECTED]
(Carl Franks) wrote:
> I think that also including how many original articles had a
> reply, and how many had no reply, would be a useful statistic
> which would show the level of (or lack of) line noise.
> [...]
> Thoughts?
At present, these
Postman Pat wrote:
>
> Greetings gurus,
Hello,
> I have the following line from a PIX log:
> <163>Jun 12 2002 23:55:26: %PIX-3-106011: Deny inbound (No xlate) tcp src
> inside:192.14.32.44/1401 dst dmz:10.0.0.16/80 <166>Jun 12 2002 23:55:31: %
> PIX-6-302005: Built UDP connection for faddr 196.
on Tue, 18 Jun 2002 09:26:27 GMT, [EMAIL PROTECTED]
(Nigel Peck) wrote:
> I realise that a Perl script is comiled just before it is run, and
> that there is no need to pre-compile a Perl script. However, it is
> the only way that I can think to be able to leave a Perl script at
> a customer's si
Sounds good, is it reliable?
>>> Felix Geerinckx <[EMAIL PROTECTED]> 06/18/02 11:30am >>>
on Tue, 18 Jun 2002 09:26:27 GMT, [EMAIL PROTECTED]
(Nigel Peck) wrote:
> I realise that a Perl script is comiled just before it is run, and
> that there is no need to pre-compile a Perl script. However,
There's on slight problem, it's not free :-) (you try getting our MD to
pay for anything)
It's definately something I'll keep pestering for (it comes with the
ASPN subscribtion which I'm after anyway) but for now I need a solution
that doesn't cost money, any ideas?
Thanks
Nigel
>>> Felix Geeri
[Thread rearranged]
on Tue, 18 Jun 2002 10:52:19 GMT, [EMAIL PROTECTED]
(Nigel Peck) wrote:
> Felix Geerinckx <[EMAIL PROTECTED]> 06/18/02 11:30am
>>
>> Did you consider ActiveState's PerlApp (part of their Perl Dev
>> Kit), which can compile a Perl program to an (optionally
>> freestanding - i
[Thread rearranged]
on Tue, 18 Jun 2002 11:06:55 GMT, [EMAIL PROTECTED]
(Nigel Peck) wrote:
> Felix Geerinckx <[EMAIL PROTECTED]> 06/18/02 11:30am
>> Did you consider ActiveState's PerlApp
> There's on slight problem, it's not free :-) (you try getting our
> MD to pay for anything)
It's not
Hi all,
I am runing a windows 2000 server and I have just installed perl that I got
from ActiveState.com. I have been playing and have come up against a few
problems.
1) It seems that writing perl scripts with embedded HTML is more like
writing 'Microsoft Active Server Pages' in Perl, using <%
> 2) The second problem I am up against is: It says in the
> setup procedure (at
> www.activestate.com) that I should be able to run perl
> scripts from my
> command prompt ? I dont seem to be able to do this.
what happens when you try to run a script from commmand line? is the perl
exec
Hi
>what happens when you try to run a script from commmand line? is the perl
>executable in your path?
No - the error I get is:
example.pl is not recognised as an internal or external command, operable
program or batch file
How to I make D:\Perl\bin part of my path ?
Hi,
I have a C program. In there is a function that I need for perl. This is the first
time I am dealing with the C / Perl Interface. Is there any detailed reading material
on how it's done ?? Any guidance would be highly appreciated.
Thanks
Shishir
--
To unsubscribe, e-mail: [EMAIL PROTEC
In win2k, right click My Computer, choose Properties, then the Advanced Tab,
then the Environment Variables button, add the path to the perl install
(c:\perl\bin on my system) to the System Path. Voila. You should be fine
at that point.
Ron
> -Original Message-
> From: A Taylor [mailto
What's the C function? Is it something standard in C?
Or did you/someone write it?
and the big question:
What does it do? (Most likely if it's general enough someone has written a
module for it in Perl).
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tu
On Tue, 2002-06-18 at 09:57, Shishir K. Singh wrote:
> Hi,
>
> I have a C program. In there is a function that I need for perl. This is the first
>time I am dealing with the C / Perl Interface. Is there any detailed reading material
>on how it's done ?? Any guidance would be highly appreciate
It's an custom function in a program. It has relevance to what I am doing and I don't
have the heart to translate it in perl right now:) (it's a big function). I was hoping
maybe I could perhaps adapt it to be called from the perl program. And nope, there is
no module for that in Perl.
Hey A,
My MUA believes you used (X-Mailer not set)
to write the following on Tuesday, June 18, 2002 at 9:55:51 AM.
AT> Hi
>>what happens when you try to run a script from commmand line? is the perl
>>executable in your path?
AT> No - the error I get is:
AT> example.pl is not recognised as an i
> -Original Message-
> From: Elias Assmann [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 17, 2002 5:45 PM
> To: [EMAIL PROTECTED]
> Subject: Can't call method "foo" without a package or object reference
> at...
>
>
> Hello,
>
> I ran into this strange error... What I got was this:
>
> -Original Message-
> From: Nigel Peck [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: Code Generating/Compiling
>
>
> Hi all,
>
> I realise that a Perl script is comiled just before it is
> run, and that
> there is no need to pre-c
Wouldn't you be needing something like perl2exe or perl2app?? Oops, one problem...they
come for a price!!
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 10:22 AM
To: 'Nigel Peck'; [EMAIL PROTECTED]
Subject: RE: Code Generating/Compiling
I have a subroutine that returns 3 array refs. so i have:
my ($stats, $totals, $loads) = gets_stats();
$stats and $totals are reference to arrays of arrays. $loads is just a ref
to an array. what i want to do is is combine each "record" of each array
into one. here is how the structures look:
$sta
On Mon, 17 Jun 2002 16:55:08 -0700, [EMAIL PROTECTED] (Drieux) wrote:
>
>given that your code would generate
>$vc{'TZ'} = 'ok';$vc{'UA'} = 'ok';$vc{'UG'} = 'ok';$vc{'UK'} =
>'ok';$vc{'UM'} = 'ok';
>$vc{'US'} = 'ok';$vc{'UY'} = 'ok';$vc{'UZ'} = 'ok';$vc{'VA'} =
>'ok';$vc{'VC'} = 'ok';
>$vc{'VE'}
--- "Shishir K. Singh" <[EMAIL PROTECTED]> wrote:
> It's an custom function in a program. It has relevance to what I am doing and I
>don't have the
> heart to translate it in perl right now:) (it's a big function). I was hoping maybe
>I could
> perhaps adapt it to be called from the perl program
push (@myVar, @$_) for @$stats;
push (@myVar, @$_) for @$totals;
push (@myVar, $_) for @$loads;
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: combining data structures into one array
I have a sub
Hey A,
My MUA believes you used (X-Mailer not set)
to write the following on Tuesday, June 18, 2002 at 10:41:41 AM.
AT> Hi Tim, thanks for your help,
>>My MUA believes you used (X-Mailer not set)
>>to write the following on Tuesday, June 18, 2002 at 9:55:51 AM.
AT> what is MUA ?
Mail User
Hi David,
I have found the 'File Types' and the path was already set to:
D:\perl\bin\perl.exe %1 %*
but this command line doesn't work:
perl -e 'print"It worked\n";'
I get the same 'perl is not recognised as an internal or external command
..'
Any ideas
Cheers
Anadi
> >Anadi,
> >
Oops..your Requirements was different..
To achieve, @stats = [ user, cpu, mem, tot_cpu, tot_mem, load1, load2]
you need to do
push (@$stats, @$totals, $loads);
I am assuming User, cpu, mem, tot_cpu, tot_mem are again reference to an array
Cheers
Shihir
-Original Message-
From: S
this won't work, will just push one array onto another.
thanks
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 10:55 AM
> To: Kipp, James; [EMAIL PROTECTED]
> Subject: RE: combining data structures into one array
>
>
> push (@myVa
>
>
> Oops..your Requirements was different..
>
> To achieve, @stats = [ user, cpu, mem, tot_cpu, tot_mem, load1, load2]
>
> you need to do
>
> push (@$stats, @$totals, $loads);
>
> I am assuming User, cpu, mem, tot_cpu, tot_mem are again
> reference to an array
thanks. the @stats array c
> -Original Message-
> From: Kipp, James [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 10:32 AM
> To: [EMAIL PROTECTED]
> Subject: combining data structures into one array
>
>
> I have a subroutine that returns 3 array refs. so i have:
> my ($stats, $totals, $loads) = gets_st
Hi Tim,
>
>You installed ActivePerl on a windows server right? Did you accept the
>defaults?
Yes - ActivePerl has been installed on my server and I accepted the
defaults.
>When you typed perl -v were you at the _server's_ console cmd prompt?
yes
>What do you get if you type 'path' at a cmd
Hello!
The following part of code uploads 0k.
#!/usr/bin/perl
...
if($foto) {
open (F, ">$path/$number/$foto") || die "Cannot open $!";
while(<$foto>) {
print F $_;
}
close F;
}
Where could be the problem?
Please help,
Collette.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
> I am assuming User, cpu, mem, tot_cpu, tot_mem are again
> reference to an array
woops let me clarify. $stats is a ref to an array of anon arrays.
so '$stats->[0]' contains a record lie ["someuser", 5.5, 10.2]
same goes for $totals
$loads just refs a single anon array: $loads = [load1, load2]
see below
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: My script can't upload the data
>
>
> Hello!
>
> The following part of code uploads 0k.
>
> #!/usr/bin/perl
>
> ...
>
> if
Do you mean to say
push (@$stats, @$totals, $loads);
didn't work ??
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:23 AM
To: Shishir K. Singh; Kipp, James; [EMAIL PROTECTED]
Subject: RE: combining data structures into one array
> I am
Hi David - You are a star, It worked Yippee
So I realise that I have to have: #!D:\Perl\bin\perl -w at the top of my
perlscripts...
So if I am writing scripts on my server for the web - database access etc,
do I have to use the <% and %> to embed my perl into my HTML
I have been
>
> push (@$stats, @$totals, $loads);
>
> didn't work ??
haven't tried yet. get back to you in a bit
thanks again
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
It looks like some stuff is mixed up.
Who is what ??
$foto ??
$path/$number/$foto ??
Let's make this difference :
if($picture) { ## If possible of course
open(F, ">$path/$number/$foto") || die "Cannot open $!";
Now what do you want to store into this file.
You opened the file in overwr
I came across this snippet of code, in somebody's old
code.
($cellname = $split_cellname) =~ s/:.*//;
I would like to understand the usage of this statement
in general, but in particular, i would like to know
the significance of of the colon(:) character in the
split function.
Thanks
PN
_
>
> Is there a correspondence between stats and totals, such that the
> "nth" entry in stats matches the "nth" entry in totals? If so,
> you would want to say something like:
>
>push @{$stats->[$_]}, @{$totals->[$_]}, @$loads
> for 0 .. $#$stats;
>
>
no, there is not. i just want
Hi,
Is there a way to get the number of lines in a file. Conditions:
a) Without using backticks on wc -l
b) Without opening the file and looping over the records
Thanks
Shishir
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Tuesday, June 18, 2002, at 08:27 , Nikola Janceski wrote:
[..]
>>
>> if($foto) {
>> open (F, ">$path/$number/$foto") || die "Cannot open $!";
>> while(<$foto>) {
> ## should be
> while() {
>> print F $_;
>> }
>> close F;
>> }
[..]
Not really - since that would mean trying
to read from a file
> -Original Message-
> From: Kipp, James [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 11:46 AM
> To: [EMAIL PROTECTED]
> Subject: RE: combining data structures into one array
>
>
>
> >
> > Is there a correspondence between stats and totals, such that the
> > "nth" entry in
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: No of lines in a file
>
>
> Hi,
>
> Is there a way to get the number of lines in a file. Conditions:
>
> a) Without using backticks on wc
Anadi,
Thanks, but not really...
The
#!D:\Perl|bin\perl -w
is ignored in windows - the key is the file association ( the My Computer,
View, Options stuff). Once windows knows which program is supposed to open a
particular file extension it should be off on running, but I had you put the
#!D:..
Its not a split.its a substitute. What this snippet is doing is removing
anything that follows a colon and a dot.
Prachi.
Original Message Follows
From: pn <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: colon(:) in split --- what does it mean ?
Date: Tue, 18 Jun 2002 08:45
Probably the record is like
$split_cellname = ABCDEFGHIJK:12345678
($cellname = $split_cellname) =~ s/:.*//;
$cellname will now have "ABCDEFGHIJK"
$split_cellname =~ s/:.*//
=> substitute any character starting with : till the end of the string (s/:.*/), in
$split_cellname, to NULL (//
Uh oh!! Thanks !! Guess I will have to do it the old fashioned way!!
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:51 AM
To: Shishir K. Singh; [EMAIL PROTECTED]
Subject: RE: No of lines in a file
> -Original Message-
> From: S
from the cookbook:
$count += tr/\n/\n/ while sysread(FILE, $_, 2 ** 16);
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: No of lines in a file
>
>
> Hi,
>
> Is there a way to get the nu
On Tuesday, June 18, 2002, at 08:46 , Shishir K. Singh wrote:
> Is there a way to get the number of lines in a file. Conditions:
>
> a) Without using backticks on wc -l
> b) Without opening the file and looping over the records
not really unless your OS provides some sort of 'meta-data'
file t
Hello,
I have an smp machine that I want to run two instances of setiathome
on. I have two s@h directories (/root/.setiathome and
/root/.setiathome2). I wrote this to run both of them at the same time
right from one script. If I use the -a flag to run both of them, it
never moves on to start t
Maybe your looking to start them in the background using & at the end of
your command like such:
`cd $setiathome1_dir; ./setiathome -proxy 192.168.1.3:5517 &`;
and
`cd $setiathome2_dir; ./setiathome -proxy 192.168.1.3:5517 &`;
, since I think that the first sub you have is waiting for the comm
Tyler, et al --
...and then Tyler Longren said...
%
% Hello,
%
% I have an smp machine that I want to run two instances of setiathome
% on. I have two s@h directories (/root/.setiathome and
% /root/.setiathome2). I wrote this to run both of them at the same time
% right from one script. If I
On Tuesday 18 June 2002 5:08 pm, Tyler Longren wrote:
> Hello,
Hi,
>
> I have an smp machine that I want to run two instances of setiathome
> on. I have two s@h directories (/root/.setiathome and
> /root/.setiathome2). I wrote this to run both of them at the same time
> right from one script.
Hi Anders,
I actually tried that already. I thought it'd be the shell way of
solving it also, but it doesn't help any. It just sits there running
the first one. However, when I quit the perl script, the s@h client is
still running, and I don't want that. :)
Thanks for the suggestion though,
Gary,
I tried the code you posted, and it has the same problem mine did.
tyler
On Tue, 2002-06-18 at 11:17, Gary Stainburn wrote:
> On Tuesday 18 June 2002 5:08 pm, Tyler Longren wrote:
> > Hello,
>
> Hi,
>
> >
> > I have an smp machine that I want to run two instances of setiathome
> > on.
Shishir and Bob,
still can't get it to work. also decided we can leave out $loads, so
basically i want to combine $stats and $totals. as bob suggested, here is
sample data:
($stats, $totals, $loads) = gets_stats();
when the get_stats() func is called $stats will contain something like this:
$sta
Hello Jim,
how about something along these lines:
for(0..$#{$stats}) { push @stats, $stats->[$_],$totals->[$_]; }
Shawn
- Original Message -
From: "Kipp, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 11:40 AM
Subject: RE: combining data structures in
On Tuesday, June 18, 2002, at 07:32 , Kipp, James wrote:
> I have a subroutine that returns 3 array refs. so i have:
> my ($stats, $totals, $loads) = gets_stats();
would it be possible to expose this gets_stats()
function - and/or re-think how it deals with
generating data...
ciao
drieux
-
Oh Simple...What threw me off is that I though you wanted to use the rest of the
arrays in the same format as $stats which is a reference to an anonymous array of
anonymous arrays.
$stats = [ user, cpu, mem, tot_cpu, tot_mem, load1, load2];
Now I see that you want something like this
@stats
>
> > I have a subroutine that returns 3 array refs. so i have:
> > my ($stats, $totals, $loads) = gets_stats();
>
> would it be possible to expose this gets_stats()
> function - and/or re-think how it deals with
> generating data...
of course, that is what i am doing now :-).
--
To unsu
>
> @stats = (user, cpu, mem, tot_cpu, tot_mem, load1, load2);
>
>
> You can do this
>
> #
> my @myVars = ();
> push (@myVars, @$stats, @$totals, $loads);
> ##
tried that, it does not work. I think i have found
Let DBI quote it for you..
$month = $dbh->quote($month);
$day = $dbh->quote($day);
$hms = $dbh->quote($hms);
$host = $dbh->quote($host);
$description = $dbh->quote($description);
$dbh->do("INSERT INTO tb1 (month, day, hms, host, description) VALUES
($month, $day, $hms, $host, $description)");
-
Hi guys,
I'm not sure why the first regex (see below) does not grep the correct
line. The 2nd one does. (but it greps the whole line and not only the
part I want to have since the delimiter is \n)
Would be nice if you could give me a hint what I'm doing wrong with the
first regex:
I want to gre
Errr,
Well, after reading further back, I see this has already been suggested by Bob...
According to your data, this should work fine for you... Do you actually end up with
$stats on some and not on others (or $totals on one and not on others) so that this
snippet wouldn't work?
Shawn
---
I think what you might want to try is this:
push @myVars,(@$stats,@$totals,$loads);
if what you are trying to do is just add the contents of the last three
arrays to the @myVars array...
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 9:56
on Mon, 17 Jun 2002 20:50:59 GMT, Jason Frisvold wrote:
> Let DBI quote it for you..
>
> $month = $dbh->quote($month);
> $day = $dbh->quote($day);
> $hms = $dbh->quote($hms);
> $host = $dbh->quote($host);
> $description = $dbh->quote($description);
>
> $dbh->do("INSERT INTO tb1 (month, day, hms
Note to all: please don't top-post. It makes replying to a reply a pain...
Hey, I use Outlook too, but I just move my cursor down to the bottom to
start
replying :)
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 12:22 PM
> To: Anders H
On Tuesday, June 18, 2002, at 09:40 , Kipp, James wrote:
> $totals = [
> [ 15.8, 17.2 ],
> [ 3.7, 3.9 ],
> etc
> ];
could it be that this form is like way Ugly?
note that assume a function of form:
# let us Dummy up some data
sub gets_Stats {
my @load = qw/
Tim,
Thanks a lot for this.. Thanks to you and a few others on this list I now
have Perl running properly on my server !!!
Well - guess I can kiss the Summer goodbye .. ha ha ;-)
Thanks again
Anadi
>Not sure what happened, every time I have installed, ActiveState
>updated the path. Whe
Thanks everyone for your help. I am going to redo the get_stats() function
to be 'smarter', the way it is now is much to messy.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
well done. but as you said the "form is way ugly". I have adjusted the sub
to return array refs that i can easily deal with.
> -Original Message-
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 1:35 PM
> To: begin begin
> Subject: Re: combining data structures in
cool. the 'getRemLoad' sub is going to come in handy during this project
thanks.
>
>
> then you can unwarp it with say:
>
> http://www.wetware.com/drieux/pbl/Auslanders/gets_stats.txt
>
> ciao
> drieux
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
on Tue, 18 Jun 2002 17:43:24 GMT, James Kipp wrote:
> Thanks everyone for your help. I am going to redo the get_stats()
> function to be 'smarter', the way it is now is much to messy.
No wonder you come to that conclusion after the odd 20, dare I say,
messy answers in this thread.
Let's go bac
use #!d:\perl\bin\perl.exe -w
on top of your script
eric
On Tue, 18 Jun 2002, A Taylor wrote:
> Hi
>
> >what happens when you try to run a script from commmand line? is the perl
> >executable in your path?
>
> No - the error I get is:
> example.pl is not recognised as an internal or external c
Hi all,
I have a script that allows me to connect to my SQL Server7 database, and
run a SQL command:
use Win32::OLE;
$conn = new Win32::OLE('Adodb.Connection');
$conn->Open(
Hey learn,
My MUA believes you used (X-Mailer not set)
to write the following on Tuesday, June 18, 2002 at 2:49:32 PM.
lp> use #!d:\perl\bin\perl.exe -w
lp> on top of your script
As I recall, the #! in Windows only uses the switches (-w).
So
#!perl -w
is the same as
#!d:\perl\bin\perl -w
Can
Hello all,
I have quite a complicated question and it is mainly about how to process the data
after I get it out of the database.
Here's what I have
I have a CGI that has about 7 checkboxes in it ( a checkbox group). When submitted it
sends an array of the checkboxes that were checked in
> Hey learn,
>
> My MUA believes you used (X-Mailer not set)
> to write the following on Tuesday, June 18, 2002 at 2:49:32 PM.
>
> lp> use #!d:\perl\bin\perl.exe -w
>
> lp> on top of your script
>
> As I recall, the #! in Windows only uses the switches (-w).
>
> So
> #!perl -w
> is the same a
On Tuesday, June 18, 2002, at 10:52 , Kipp, James wrote:
> well done. but as you said the "form is way ugly". I have adjusted the sub
> to return array refs that i can easily deal with.
>> On Tuesday, June 18, 2002, at 09:40 , Kipp, James wrote:
>>
>>> $totals = [
>>> [ 15.8, 17.2 ],
>>>
On Tuesday, June 18, 2002, at 10:55 , Kipp, James wrote:
> cool. the 'getRemLoad' sub is going to come in handy during this project
> thanks.
[..]
>> then you can unwarp it with say:
>>
>> http://www.wetware.com/drieux/pbl/Auslanders/gets_stats.txt
>>
You might want to get in touch with
Something I just found out.
I use NT 4 sp 6, Activestate perl 5.6.1.
I create a cmd file for all my perlscripts that have a line
c:/full/path/to/perl c:/path/to/script.pl
and it seems that it reads the #! line for command line options, (ie -d).
Never knew that.
> -Original Message-
> Fr
Hi,
I need to know the easiest way to translate a date (not today's date)
into the number of seconds since 01/01/1970. I realize there is at
least one function that turns the current date/time into this number,
but I need to find, for instance, everything with a date/time stamp
between 01/01/1998
Alan,
Use the Date::Manip module from CPANlook at the DateCalc subroutine.
HTH,
Kevin
On Tue, 18 Jun 2002 12:38:57 -0700 (PDT)
Alan Hogue <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to know the easiest way to translate a date (not today's date)
> into the number of seconds since 01/01/197
Look up the Time::Local module. It should be able to do what you need.
-Original Message-
From: Alan Hogue [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 12:39 PM
To: [EMAIL PROTECTED]
Subject: Function for converting a specific date to number of seconds
since 01/01/1970?
Hi,
on Tue, 18 Jun 2002 19:11:29 GMT, Kevin Old wrote:
> I have quite a complicated question and it is mainly about how to
> process the data after I get it out of the database.
> [...]
> I need to perform caclulations on the values as they come out of the
> databasedoes anyone know of a way to
"Shishir K. Singh" wrote:
>
> Hi,
Hello,
> I have a C program. In there is a function that I need
> for perl. This is the first time I am dealing with the
> C / Perl Interface. Is there any detailed reading material
> on how it's done ?? Any guidance would be highly appreciated.
You _might_ b
Does anybody know a free web hosting where I can run perl cgi?
"Shishir K. Singh" wrote:
>
> Probably the record is like
>
> $split_cellname = ABCDEFGHIJK:12345678
>
> ($cellname = $split_cellname) =~ s/:.*//;
>
> $cellname will now have "ABCDEFGHIJK"
>
> $split_cellname =~ s/:.*//
>
> => substitute any character starting with : till the end of the str
dns2go.com
- Original Message -
From: "Thiago Ferreira" <[EMAIL PROTECTED]>
To: "beginners-perl" <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 16:22
Subject: CGI web hosting
Does anybody know a free web hosting where I can run perl cgi?
--
To unsubscribe, e-mail: [EMAIL PROTECT
Alan Hogue wrote:
> Hi,
>
> I need to know the easiest way to translate a date (not today's date)
> into the number of seconds since 01/01/1970. I realize there is at
> least one function that turns the current date/time into this number,
> but I need to find, for instance, everything with a dat
Shawn wrote:
>> Hey learn,
>>
>> My MUA believes you used (X-Mailer not set)
>> to write the following on Tuesday, June 18, 2002 at 2:49:32 PM.
>>
>> lp> use #!d:\perl\bin\perl.exe -w
>>
>> lp> on top of your script
>>
>> As I recall, the #! in Windows only uses the switches (-w).
>>
>> So
>
> if($foto) {
> open (F, ">$path/$number/$foto") || die "Cannot open $!";
> while(<$foto>) {
Why use while ? $foto is one data. To write one data,
I don't think it is nessary to use while unless you are
try to write an array to the file handle like :
print F $_ while (@array);
But if you are
Nikola Janceski wrote:
> Something I just found out.
> I use NT 4 sp 6, Activestate perl 5.6.1.
> I create a cmd file for all my perlscripts that have a line
>
> c:/full/path/to/perl c:/path/to/script.pl
>
Im just guessing, but it seems like this could throw your environment way
out of whack.
Sven Bentlage wrote:
>
> Hi guys,
Hello,
> I'm not sure why the first regex (see below) does not grep the correct
> line. The 2nd one does. (but it greps the whole line and not only the
> part I want to have since the delimiter is \n)
> Would be nice if you could give me a hint what I'm doing w
Felix Geerinckx wrote:
> on Tue, 18 Jun 2002 19:11:29 GMT, Kevin Old wrote:
>
>> I have quite a complicated question and it is mainly about how to
>> process the data after I get it out of the database.
>> [...]
>> I need to perform caclulations on the values as they come out of the
>> database.
Dave K wrote:
> Anadi,
> Thanks, but not really...
> The
> #!D:\Perl|bin\perl -w
> is ignored in windows - the key is the file association...
dont forget... not ignored... the line is parsed for switches
> I am not familar with the <% %> syntax (Mason or mod_perl perhaps??), The
That is ho
> > On Win2K, from the command line, the she-bang means absolutely nothing.
> > It's not until you try to run it from a server that the she-bang comes
> > into play... I think it is the same across all win32 platforms...
>
> The previous op was correct. The first line is parsed for switches, un
And of course, if you want the perl scripts to just run without invoking the
interpreter directly, you can associate all .pl files with perl.exe. This
is done automatically with the ActivePerl MSI install. Additionally, you
can add .pl to your PATHEXT environment variable so that you can invoke
1 - 100 of 111 matches
Mail list logo