> > > My next direction is OOP, but I have found it to be a
> > > little beyond my grasp each time I try. Maybe with this
> > > list's help I can get it.
> wow finaly an explanation of OOP that I can understand !
> what an elegant way of explaining it , thanks
Thanks for the thanks, Greg a
At 02:41 PM 6/16/01 -0500, Teresa Raymond wrote:
>I copied the code from Randal's Web Techniques at
>http://www.stonehenge.com/merlyn/WebTechniques/col46.html but I think I
>must have mistyped something because I get the below errors. I had other
>syntax errors that I fixed but this one I don'
At 05:04 PM 6/16/01 -0400, F.H wrote:
>Hi All,
>I am trying to display some data as follows:
>
> City: Chicago
> Street: Main
> People:
>John Doe 1
>John Doe 2
>J.D 3
>
> City: L.A
>
Hey Me,
Saturday, June 16, 2001, 2:03:07 PM, you wrote:
>> My next direction is OOP, but I have found it to be a
>> little beyond my grasp each time I try. Maybe with this
>> list's help I can get it.
M> First you have to unlearn.
M> Imagine you knew nothing about programming.
M> Now, I intr
Folks,
as I emailed earlier, I am working on a log parsing program. This program
needs to be able to handle ~1500 logs that total ~100MB in size. Currently,
we are only pulling out certain information from the logs, but this can
change at anytime. I am trying to figure out a clean way to opendir,
On Saturday 16 June 2001 10:03, you wrote:
> > My next direction is OOP, but I have found it to be a
> > little beyond my grasp each time I try. Maybe with this
> > list's help I can get it.
>
> First you have to unlearn.
>
> Imagine you knew nothing about programming.
>
> Now, I introduce a thin
I'm guessing it's a problem with tainted data. You are using $msgtext
and $dest in a system call without untainting the data first. In other
words, somebody could put "\"; rm -rf /\"" in $dest, and you'd be short
a filesystem (well, the files that your web server has access to anyway.
What you
A nerf clue-bat? Now that sounds interesting. Time to head down to the
local toy store.
Dean Theophilou
Genisar
-Original Message-
From: Kevin Meltzer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 9:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] thread CLOSED
It is a varian
Hi All,
I am trying to display some data as follows:
City: Chicago
Street: Main
People:
John Doe 1
John Doe 2
J.D 3
City: L.A
Street
and so on...for the other states
my %state;
Whil
Helo ,
I have problem with submiting form to perl script :
What realy problem is when I try to submit form trought web I get $retval= -1 from
smsgw.pl script, but when I try that from command line :
perl smsgw.pl dest=233435 msgtxt=hi
it works without any problem .
Where I'm wrong?
Thanks ,
Al
I copied the code from Randal's Web Techniques at
http://www.stonehenge.com/merlyn/WebTechniques/col46.html but I think
I must have mistyped something because I get the below errors. I had
other syntax errors that I fixed but this one I don't have a clue
about. I'd appreciate any help.
# Bar
Thank you. worked like a charm.
On Saturday 16 June 2001 12:52, Me wrote:
> > I am apparently missing something.
>
> Being aware of buffering, I suspect.
>
> Various parts of the 'pipe' between your print
> statements and the final destination do some
> sort of buffering. You can switch some of
On Sat, Jun 16, 2001 at 09:31:13AM -0700, Peter Scott wrote:
> At 09:15 AM 6/16/2001 -0700, Ron Anderson wrote:
> >
> >And can I sort the hash by last name and then first name?
>
> Consider using instead a hash-of-hashes or hash-of-arrays(perldoc perllol).
And when you need more efficiency type
or even better/less expensively you can run a vnc server on the Linux box
then run the client on the windows box to connect to it you get a full
graphical interface although the refresh can be a little slow at times it
works quite well... another nice feature is you can also login to it via an
> My next direction is OOP, but I have found it to be a
> little beyond my grasp each time I try. Maybe with this
> list's help I can get it.
First you have to unlearn.
Imagine you knew nothing about programming.
Now, I introduce a thing called a variable:
my Dog $spot;
(ok, the current
Hey Chas,
Saturday, June 16, 2001, 1:47:30 AM, you wrote:
CO> On 15 Jun 2001 19:31:39 -0400, Tim Musson wrote:
>> Hey Chas,
>>
>> Thanks, I run Win2k so had to make some changes (the unix \r\n is just
>> \n on the M$ OS's). I also had a question.
>>
>> {
>>You wrapped some of your code in
> I am apparently missing something.
Being aware of buffering, I suspect.
Various parts of the 'pipe' between your print
statements and the final destination do some
sort of buffering. You can switch some of this
off in perl by specifying:
$| = 1;
> This should've worked. But why do I get a warning:
>
> Use of uninitialized value at ./mk2_ratingchangedb.pl line 39,
chunk 8.
Whenever you're dealing with baffling array errors
like this, always think of off-by-one.
In this case:
> 30 for ($i=1; ...) {
> 31 $dummy[$i][
I am apparently missing something. I used the following lines in a program,
with the intention of the output to screen pausing 1 second, then printing 2
line returns and 'The result is:', then pausing another second, then
continuing with the rest of the printing. What it does is pause one sec
It is a variant of clue-by-four (clue + two-by-four). See also: LART.
http://www.tuxedo.org/jargon/html/entry/clue-by-four.html
I used to have a Nerf-bat with the word 'CLUE' written on it in my office,
which I would whack people with (and occasionally get a whack from myself).
Cheers,
Kevin
O
> But, if you did, I think this should work:
But then it is saturday morning. Sigh. Ignore my
attempt; use Peter's.
> sub room { my $s = $shash{$_}; (split /\t/)[2] };
Wrong, twice. You wanted lastname, not room.
And the split isn't working on the right thing.
Peter's solution is clearer, n
> $shash{"student1"} = join("\t", ("bob", "tyson", "room5"));
> $shash{"student2"} = join("\t", ("ron", "anderson", "room4"));
> $shash{"student3"} = join("\t", ("dave", "lee", "room2"));
> $shash{"student4"} = join("\t", ("tim", "barker", "room3"));
> $shash{"student5"} = join("\t", ("roger", "fa
At 09:15 AM 6/16/2001 -0700, Ron Anderson wrote:
>Hi!
>
>Using the following hash as an example:
>
>$shash{"student1"} = join("\t", ("bob", "tyson", "room5"));
>$shash{"student2"} = join("\t", ("ron", "anderson", "room4"));
>$shash{"student3"} = join("\t", ("dave", "lee", "room2"));
>$shash{"stude
Hi!
Using the following hash as an example:
$shash{"student1"} = join("\t", ("bob", "tyson", "room5"));
$shash{"student2"} = join("\t", ("ron", "anderson", "room4"));
$shash{"student3"} = join("\t", ("dave", "lee", "room2"));
$shash{"student4"} = join("\t", ("tim", "barker", "room3"));
$shash{"s
On Sat, 16 Jun 2001, Paul wrote:
> > You probably shouldn't send it. When in doubt, ask one of the keepers
> > of the clue-bats, before posting.
>
> clue-bats? =o)
> Is that actually a thing? If so, I'd like to learn this, no sarcasm
> intended.
> If not, it was a cool reference. =o)
>
> (And I o
--- Kevin Meltzer <[EMAIL PROTECTED]> wrote:
> . . .
> In general, if your post begins with:
>
> "I know this isn't the right list for this"
>
> or
>
> "I know this is off topic, but..."
>
> You probably shouldn't send it. When in doubt, ask one of the keepers
> of the clue-bats, before p
--- Peter Cornelius <[EMAIL PROTECTED]> wrote:
> >It's also worth mentioning that if you 'use strict;' you can't
> declare
> >you're own symbol table variables so all of your user defined
> variables
> will
> >be lexically scoped.
>
> I need to correct myself. I said you can't declare symbol ta
On Sat, 16 Jun 2001, Joel Divekar wrote:
> Chas Owens thanks for your reply... but
>
> At 03:10 AM 6/16/2001 -0400, Chas Owens wrote:
> >That depends on whether you are running an X server on your machine.
>
> nope... I am using win2k / win9x system and by using telnet app I connect to
> Linux se
same applies here again. this is the trick used:
we dig out that value we want to sort on, make that the key of our hash and
go from there
let me adres the @arr you presented.
### EXAMPLE 1 ###
### this will NOT eliminate the value we're sorting on from the list ###
while ( my @s = splice(@a
People, when a topic/thread is close, this means you *do NOT post to the list
on it again, ever*. This is not the proper forum for this discussion, and if
you cannot show restraint from replying to the list as a whole, as opposed to
the few who are taking part in the OT talk, then you may have pos
Thnaks a lot Jos. The idea of reading the array into a hash is quite appealing, and
simple too. But I have a small problem with this:
What if I want to sort on the second column of the array? Or if there are more
than two columns?
Say we have:
my @arr = qw(
1 2 3 4
4 5 6 7
5 6 7 8
1 2 3 4
3
ok, so if i get this right, @dummy has the following format:
my @dummy = qw(
1996013100:00:00MAAA
281100:00:00MA-
1997063000:00:00MAAA
1998122200:00:00MAA
2000112400:00:00MD
);
now we have that established, let'
ok, what's going on here is the following:
map 'maps' (returns to whatever is on the left hand side of it) the return
value of whatever is in between the { } after the 'map' statement;
so if you say:
my @foo = qw(bar baz);
my @bar = map { s/a/e/ } @foo;
print @bar;
that will print
At 11:23 AM 15/06/2001 -0700, Crystal Gruetzmacher wrote:
>Once upon a time I could use MS-Dos to run my Perl scripts at the C:\Perl
>prompt. Then use Perl nameofscript.pl or whatever the name was. That isn't
>working anymore.
In your c:\autoexec.bat file add the following then reboot:
SET
Folks,
# How do I sort an array by one of it's fields?
I have a this code:
for ($i=1; $i<=$N; $i++) { }
$dummy[$i][0] = &ParseDate($data{$key}[$i][0]);
if (! $dummy[$i][0]) { }
warn "Could not parse $data{$key}[$i][0]\n";
}
$dummy[$i][1] = $da
Hi
Can anyone provide some guidance/working examples to acheive multilanguage
support using Unicode in perl.
ie., the Unicode technique used to convert an text in english to any other
language ( eg: Greek/Russian)
Just if someone interested :
I received an answer from "TheBat!" developers - the common way of
working with their files is via /IMPORT and /EXPORT command line
arguments :
/IMPORT command allows batch importing of e-mail messages into a specified folder
from multiple RFC-822 message files or f
Hi
Chas Owens thanks for your reply... but
At 03:10 AM 6/16/2001 -0400, Chas Owens wrote:
>That depends on whether you are running an X server on your machine.
nope... I am using win2k / win9x system and by using telnet app I connect to
Linux server, now I want to run netscape or kde or Xwindow
38 matches
Mail list logo