Hi,
I don't know anything about perl graphics. I would explain excatly what I want.
I want to develope a interactive graphical interface which can display all the nodes
in a network in a tree representation.
I should be able to draw that tree upon reading a data base (or real time data).
I sho
Dan Anderson wrote:
> I've noticed that in code examples something like the following will be
> used:
>
> use Data::Dump qw(dump);
> foo->bar qw(foo bar);
>
> (Syntax may not be 100% correct).
>
> Am I correct in assuming that if I have a subroutine foo (or method if
> called with a package name),
Desmond Coughlan wrote:
> Hi,
> I know that this exists already, but I can't find any code to pinch on the
> web. :-(
>
> The thing I want to do, is to create a searchable index on a webpage. It's
> a spoof newsgroup designed to take the piss out of someone on an Internet
> group. The address i
Wiggins d Anconia wrote:
> I suspect your comment about wanting "%POST and %GET" has more to do
> with the 'and' than the values on either side. If my assumption is
> correct and you are passing *both* values in the content body and in the
> url header then I believe you are forming a non-standard
Dan Anderson wrote:
> > If you explain why you need the %POST and %GET hashes specifically maybe we can
> > help you do it the best way.
> > So whjat are you trying to accomplish with those hashes?
>
> Well it's mostly just readability of the code.
GET and POST do not in any way add to the reada
[EMAIL PROTECTED] wrote:
> This is my first attempt. My misunderstanding was in the fact that I could
> put the filehandles inside another filehandles while loop.
>
> #!perl
> use strict;
> &read_the_files;
> sub read_the_files{
> print "\nread_the_files";#
> my$file1 ="./file1.txt";
> #contents
Paul Kraus wrote:
> My company uses outlook.
> Every other public forum I write to is all done like this.
> Outlook defaults to this.
...and Microsoft has all our best interests at heart?
> You would think that the world was going to end because somebody was
> upset they didn't get to scroll th
Rob Dixon wrote:
> Scott E Robinson wrote:
> >
> > Randal wrote:
> > >
> > > Scott E Robinson wrote:
> > >
> > > > (And, sorry for the top-posting. I haven't figured out how to fix that!)
> > >
> > > Uh, press the down arrow about a dozen times. How *hard* is that?
> >
> > Lotus Notes adds a hea
rp_29 wrote:
> Once upon a time in a western land... ...in short: you gotta have a honey
> trap !!!
Thanks,
I think you have hit some nails on the head for a lot of people. Why do we
find ourselves drawn to geekery?
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Wed, Nov 05, 2003 at 07:39:37PM -0500, Dan Anderson wrote:
> How can I tell whether or not a module exists, and what
> version it is?
There's no iron-clad rule, but the convention is for modules
to put it in the package variable $VERSION.
sub UNIVERSAL::require {
my ($module, $versi
Dan Anderson wrote:
> How can I tell whether or not a module exists, and what version it is?
> i.e. do something like if (defined CGI.pm). I want to make sure all my
> users are running off of the same modules.
during runtime or when you preparing to install your module? something
along the li
How can I tell whether or not a module exists, and what version it is?
i.e. do something like if (defined CGI.pm). I want to make sure all my
users are running off of the same modules.
Thanks in advance,
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Wed, 05 Nov 2003 17:22:10 -0500, Dan Anderson wrote:
> So I got so far with my own creation and am wondering if it should be
> given the axe or continued.
Axe it. Really. There is absolutely _no_ reason why one shouldn't use
the CGI.pm module.
--
Tore Aursand <[EMAIL PROTECTED]>
--
To u
Sudarshan Raghavan wrote:
> Rob Dixon wrote:
>
>
>
> Can't speak for the entire asian region (only India and Bangalore in
> particular), the training, experience and knowledge I guess is as varied
> (ranging from "in-depth" to "superficial") as anywhere else in the world.
>
> ...
>
> From my limi
On Wed, 05 Nov 2003 15:23:49 -0700, McMahon, Chris wrote:
> But an array doesn't suit my needs. What I really need is a
> hash where each item in the directory is a value associated with a key that
> is a number 1-n such that I could issue a print statement that would show
> something like (to ove
Jeff 'japhy' Pinyan wrote:
On Nov 5, Wiggins d Anconia said:
I suspect your comment about wanting "%POST and %GET" has more to do
with the 'and' than the values on either side. If my assumption is
correct and you are passing *both* values in the content body and in the
url header then I believe y
Emacs running in CPerl mode does it pretty well. But Emacs has a steep
learning curve and you have to install CPerl mode (it's not the
default).
-Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
McMahon, Chris wrote:
> Hi Wags...
> So now an idle style question, if you don't mind...
>
> This syntax seems pretty obscure to me (I had to look up what printf
> was doing):
>
> printf "%3d $file\n", $MyId++;
>
> It's efficient and all, but isn't this more readable for the sa
> > > hack around it I suspect you could pull out the POST data, then grab the
> > > actual full URL then pass it back through CGI's private methods to grab
> > > the data that is there also and combine the two...
> >
> > If it comes to the point where you need to "hack around"
> > CGI.pm, I'd say
"Randal L. Schwartz" wrote:
>
> Hence, the maxim: "Nothing can parse Perl but /usr/bin/perl".
>
Hmmm, that's strange. Until a couple of days ago, I had no usr directory
anywhere on my system, yet the Perl interpreter seems to work just fine.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTE
Richard Heintze wrote:
> > I think what you want is this:
> >
> > no warnings qw(uninitialized);
> >
>
> Would I put this immediately after "use warnings;"?
I would recommend against it, unless you are intending to
keep all your programs very small. Any change to basic
browser/interpreter functi
Well, atleast I was right about the padding :)
LoBue, Mark wrote:
-Original Message-
From: Andrew Gaffney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: printf? RE: help building hash on-the-fly?
I'm going to venture a guess here. It
> If it comes to the point where you need to "hack around"
> CGI.pm, I'd say go
> with your original inclination to just do it yourself.
Give me one example when you'd need to hack CGI.pm to handle
input that you can't do without hacking it.
>
> -Phil
--
To unsubscribe, e-mail: [EMAIL PROTEC
> -Original Message-
> From: Andrew Gaffney [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2003 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: printf? RE: help building hash on-the-fly?
>
>
> I'm going to venture a guess here. Its probably because he
> needed the number printe
I'm going to venture a guess here. Its probably because he needed the number printed as a
3-digit number padded with zeroes, which print can't do.
McMahon, Chris wrote:
Hi Wags...
So now an idle style question, if you don't mind...
This syntax seems pretty obscure to me (I had to look up
This is my first attempt. My misunderstanding was in the fact that I could
put the filehandles inside another filehandles while loop.
#!perl
use strict;
&read_the_files;
sub read_the_files{
print "\nread_the_files";#
my$file1 ="./file1.txt";
#contents of file1.txt
#1
#6
my$file2 = "./f
Jenda Krynicky wrote:
Jenda, what did you reply to here? Please check your sender
software. Your message referenced Rob Dixon's post "Re; refs to
subs", Message-ID <[EMAIL PROTECTED]>. It
showed no reference whatsoever to
<[EMAIL PROTECTED]>, the post to
which you were ostensibly responding
Pl
Hi Wags...
So now an idle style question, if you don't mind...
This syntax seems pretty obscure to me (I had to look up what printf
was doing):
printf "%3d $file\n", $MyId++;
It's efficient and all, but isn't this more readable for the same
number of characters?
print
Hashes are for referencing by a key name. There isn't a need for a hash if
you're using a number index.
I've noticed that in code examples something like the following will be
used:
use Data::Dump qw(dump);
foo->bar qw(foo bar);
(Syntax may not be 100% correct).
Am I correct in assuming that if I have a subroutine foo (or method if
called with a package name), and I use qw() it takes all words sep
On Wednesday, November 5, 2003, at 04:52 PM, McMahon, Chris wrote:
(But if any hash solutions make it to the list, I'll probably try
them too, just for practice...)
It's not a hash problem. Hashes are associative arrays, they're for
when you need to call contents by name. Any question o
On Nov 5, Wiggins d Anconia said:
>I suspect your comment about wanting "%POST and %GET" has more to do
>with the 'and' than the values on either side. If my assumption is
>correct and you are passing *both* values in the content body and in the
>url header then I believe you are forming a non-sta
On Nov 5, Dan Anderson said:
>There doesn't seem to be what I want in CGI.pm. (I want to create a
>%GET and %POST hash of the form $HASH{NAME} = VALUE).
So make them yourself. You can use param() and url_param() to get POST
and GET parameters if BOTH have been used in the same program (this is
This works great.
The light bulb lit up, I guess I didn't really need a hash after
all-- thanks for pointing out the simple solution!
(But if any hash solutions make it to the list, I'll probably try
them too, just for practice...)
-C
-Original Message---
McMahon, Chris wrote:
> Hello...
> This is probably a very simple question, but I don't have
> much experience using hashes...
> I have a simple program that lists all of the files on a
> directory:
>
> @files = ;
> foreach $file (@files) {
> print "$file\n";
>
> Look at perldoc CGI under "FETCHING THE PARAMETER LIST AS A HASH"
Hmmm...seems like I was looking in the wrong place of the
documentation. Thanks.
-Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello...
This is probably a very simple question, but I don't have much
experience using hashes...
I have a simple program that lists all of the files on a
directory:
@files = ;
foreach $file (@files) {
print "$file\n";
}
which prints so
Hi,
I know that this exists already, but I can't find any code to pinch on the
web. :-(
The thing I want to do, is to create a searchable index on a webpage. It's
a spoof newsgroup designed to take the piss out of someone on an Internet
group. The address is url:http://www.zeouane.org/peinedemo
> If you explain why you need the %POST and %GET hashes specifically maybe we can help
> you do it the best way.
> So whjat are you trying to accomplish with those hashes?
Well it's mostly just readability of the code. That and I am learning
from the O'Reilly book CGI Programming With Perl and t
> hack around it I suspect you could pull out the POST data, then grab the
> actual full URL then pass it back through CGI's private methods to grab
> the data that is there also and combine the two...
>
Or, the OP can do what I have been doing for years with no ill effects, and
simply write your
Dan Anderson wrote:
> There doesn't seem to be what I want in CGI.pm. (I want to
> create a %GET and %POST hash of the form $HASH{NAME} = VALUE).
Look at perldoc CGI under "FETCHING THE PARAMETER LIST AS A HASH"
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
> > This seems kind of silly. Can anyone explain to me why this is?
>
> Because if you do :
>
> use CGI qw(param);
> - It will work
> - Implemented the same in every script in every server
> - people will understand what you're doing
> - it's reusable over and over and
> This seems kind of silly. Can anyone explain to me why this is?
Because if you do :
use CGI qw(param);
- It will work
- Implemented the same in every script in every server
- people will understand what you're doing
- it's reusable over and over and over
And the clouds parted, and Dan Anderson said...
>
> This seems kind of silly. Can anyone explain to me why this is?
>
Beats me. I've been rolling my own cgi-handlers since perl4 with no
discernable ill effects. :) Let me know if you want some sample code.
Brian
/~
I am trying to create a web page. When I looked up how to decode URL
encoded data in the Perl FAQs it told me:
"You use a standard module, probably CGI.pm. Under no circumstances
should you attempt to do so by hand!"
(URL:
http://www.perldoc.com/perl5.8.0/pod/perlfaq9.html#How-do-I-decode-a-CGI-
On Wed, 05 Nov 2003 14:47:53 -0500, Motherofperls wrote:
> I have some large files that all have data for filling one table.
What is a "table" in this context?
> 1. I want to read from each of these files one line at a time at the
> same time without assigning the file to an array.
Easy enough;
On Wed, 05 Nov 2003 14:45:09 -0500, Paul Kraus wrote:
> I don't see why it matters how you send your message.
Please don't take this too hard, but it seems like you haven't been in the
"game" long enough to understand _why_ there are rules on how one should
keep an discussion going.
There are _wa
--On Wednesday, November 5, 2003 8:00 PM + Rob Dixon
<[EMAIL PROTECTED]> wrote:
Alan Perry wrote:
Rob Dixon wrote:
I have taken to copying messages into my text editor as there is
no email client that I know that can do what I want. Until I
write it, that is :)
Someone has saved you the trou
Does anybody know of a eLISP package I can use in Emacs to complete perl
variables. i.e. while typing %my_variable_name, at %my I could
shift-tab or something and get either %my_variable_name or a list like:
%my_variable_1 %my_variable_name
Thanks in advance,
Dan
--
To unsubscribe, e-mail: [E
The Win32::TieRegistry and Win32::Registry modules are great for this. I prefer
Win32::TieRegistry myself.
You will want to install it via PPM
C:\> PPM
PPM> install Win32-TieRegistry
If you run into problems because of a firewall or proxy server, do a search on the
ActveState site. Attached
Title: Message
To David,
hahaha yeah it is of that order, glad you
were able to grasp.
To Rob and Casey, its ok considered
closed here.
" This has been altered
beyond my recognition from my original post.
'Science' simply means 'knowledge', and that is where my
intention
ended. "
Thats
Once again, please say who you are?
<[EMAIL PROTECTED]> wrote:
>
> I have some large files that all have data for filling one table. I'm
> concerned about memory resources.
>
> 1. I want to read from each of these files one line at a time at the same
> time without assigning the file to an arra
Alan Perry wrote:
>
> Rob Dixon wrote:
> >
> > I have taken to copying messages into my text editor as there is no
> > email client that I know that can do what I want. Until I write it,
> > that is :)
>
> Someone has saved you the trouble... There is a program called Quotefix
> that will clean up
Paul Kraus wrote:
> This topic gets beaten on about every other month.
> I don't see why it matters how you send your message.
> This is not a news group. It may propagate but its not a news group.
>
> Last time this happened for every 1 list mail for it I received 30 off
> list mails of people who
On Wednesday, November 5, 2003, at 01:47 PM, [EMAIL PROTECTED]
wrote:
I have some large files that all have data for filling one table. I'm
concerned about memory resources.
1. I want to read from each of these files one line at a time at the
same
time without assigning the file to an array.
Rob Dixon wrote:
> Scott E Robinson wrote:
>>
>> Randal wrote:
>>>
>>> Scott E Robinson wrote:
>>>
(And, sorry for the top-posting. I haven't figured out how to fix
that!)
>>>
>>> Uh, press the down arrow about a dozen times. How *hard* is that?
>>
>> Lotus Notes adds a header to
I have some large files that all have data for filling one table. I'm
concerned about memory resources.
1. I want to read from each of these files one line at a time at the same
time without assigning the file to an array.
I haven't done this one yet, Does anyone have any example code? I wa
This topic gets beaten on about every other month.
I don't see why it matters how you send your message.
This is not a news group. It may propagate but its not a news group.
Last time this happened for every 1 list mail for it I received 30 off
list mails of people who could care less.
So why peo
Rp_29 wrote:
>
> Dear Jenda, pls. read thru...
>
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2003 5:28 AM
> To: Rajeev Prasad; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Training in the Middle and Far East
>
> Hence physics is not a science either. You
Wow, another mainframer!
I wasn't sure you could telnet to a mainframe (OS/390 or z/OS I assume you
mean) until I just tried it using a telnet emulator. Usually one uses 3270
emulation. I'm not sure what it buys you since most services use ISPF.
Most of my Perl stuff (very basic stuff) either use
---Original Message---
From: Rajeev Prasad
Date: Tuesday, November 04, 2003 10:45:56 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Training in the Middle and Far East
the clouds were dark and a lightining striked again.. obviously that was
when they parted. :)
---Original Message---
From: Rob Dixon
Date: Tuesday, November 04, 2003 5:23:17 PM
To: [EMAIL PROTECTED]
Subject: Re: $x .= $y suddenly breaks and does $x=$y instead!
Hi Richard.
Richard Heintze wrote:
>
> Sorry -- I was not quoting my own code precisely and I am using stri
---Original Message---
From: rp_29
Date: Wednesday, November 05, 2003 11:51:50 AM
To: 'Jenda Krynicky'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Training in the Middle and Far East
Dear Jenda, pls. read thru...
-Original Message-
From: Jenda Krynicky [mailt
Scott E Robinson wrote:
>
> Randal wrote:
> >
> > Scott E Robinson wrote:
> >
> > > (And, sorry for the top-posting. I haven't figured out how to fix that!)
> >
> > Uh, press the down arrow about a dozen times. How *hard* is that?
>
> Lotus Notes adds a header to the top of the note which I *can*
Any effort small or big by any individual or group (like this list )
should be respected and I do. Irrespective of the fact that how much
helpfull it was to the man-kind (Coz at least some one has spent some
time of his/her life on it).
-Original Message-
From: Rob Dixon [mailto:[EMAIL PRO
Rp_29 wrote:
>
> Once upon a time in a western land, there was a person( this story is
> gender neutral and can be applied to any gender as per your convience)
> who was quite a creative kind of person. After spending few years in
> high school, working at Big Mac and just having fun with the oter
Paul Harwood wrote:
> Thanks.
>
> Can I substitute /pattern/ with a scalar though?
Yes.
grep $_ eq 'string', @list
>
> -Original Message-
> From: Bob Showalter [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2003 5:24 AM
> To: Paul Harwood; Beginner Perl
> Subject: RE: Reg
Lotus Notes adds a header to the top of the note which I *can* cut and
paste to the bottom. It does not do the indentation with '>' characters
that seems to be preferred.
Thanks,
Scott
Scott E. Robinson
SWAT Team
UTC Onsite User Support
RR-690 -- 281-654-5169
EMB-2813N -- 713-656-3629
Once upon a time in a western land, there was a person( this story is
gender neutral and can be applied to any gender as per your convience)
who was quite a creative kind of person. After spending few years in
high school, working at Big Mac and just having fun with the oter sex,
(s)he decided to d
On Wed, Nov 05, 2003 at 12:17:08PM -0500, Rich Fernandez wrote:
> I'm using CPAN.pm to install Bundle::CPAN (and others) and I get a message
> that says:
>
> make: cc: Command not found
>
> How can I specify gcc instead of cc without having to edit each individual
> Makefile?
You need to use the
Hello,
I am writing a program that backups up databases. I am having
trouble tarring up the directories. Tarring files using Archive::Tar is
pretty straight forward, but tarring directories, I am having issues:
here is part of the code..
$datadir = "/var/lib/mysql/";
$dbQuery = qq(
Hi folks,
I'm using CPAN.pm to install Bundle::CPAN (and others) and I get a message
that says:
make: cc: Command not found
How can I specify gcc instead of cc without having to edit each individual
Makefile?
I created a link called "cc" and pointed it to /usr/local/bin/gcc, but I get
all kinds
>
> Desigining computer is science, desigining silicon wafer is science,
> writing new logical instruction set is science, Desgining and refining
> the hardware is science. But all of it is Physics, Chemistry and maths.
But you are talking semantics purely, and an existential discussion is
proba
come on people, lets keep it to 'code' questions not stupid statements...
-Original Message-
From: George Schlossnagle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 12:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Training in the Middle and Far East
DO NOT FEED THE TROLLS.
--
DO NOT FEED THE TROLLS.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dear Jenda, pls. read thru...
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 5:28 AM
To: Rajeev Prasad; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Training in the Middle and Far East
Hence physics is not a science either. You c
My greetings...
I am programming a scrit in perl... this script must list a the folders and
files i have inside a especific folder, but inside this forder there are
directories that have "ç" and for this reasing i just get the char "" is
there some other option to be done for me? i tried the f
Paul Harwood wrote:
> I would like to enumerate a list and search through each element like
> so:
>
>
>
> If (/$logs[i]/)
>
>
>
> { # code}
>
>
>
>
>
> I know the syntax is wrong so I was hoping someone could
> explain how to
> do this.
If I understand correctly, you want to use grep(
Rob Dixon wrote:
To all.
I wonder if any subscriber from the middle and far eastern
countries
Why not just say "Asian Countries"
can explain what training and IT experience people
like them are likely to have had?
Can't speak for the entire asian region (only India and Bangalore in
particular
On Tue, 04 Nov 2003 20:41:17 -0800, Paul Harwood wrote:
> I would like to enumerate a list and search through each element like
> so:
> [...]
Why do you want to enumerate the list? Do you _really_ need to know the
index of the current element? If really so:
my $i = 0;
foreach ( @list ) {
From: "Rajeev Prasad" <[EMAIL PROTECTED]>
> To me Physics, mathematics and chemistry are capable enough to explain
> certain things/phenomenons on their own. Or in other words one can not
> explain/prove certain things in the absence of any or all of these
> fundamental blocks of knowledge base.
From: Darin McBride <[EMAIL PROTECTED]>
> Richard Heintze wrote:
> > I have just discovered the the following code causes
> > trouble when I have "use strict" and "use warn";
> >
> > use strict;
> > use warnings;
> >
> > my $k = $q->param('xyz');
> > print qq[ \$k = $k ];
> >
> > The problem is
On Wed, 05 Nov 2003 01:26:20 -0500, Jack wrote:
> In my perl CGI script, I'm trying to extract the PID
> that corresponds to it.
The '$$' variable holds the pid;
perldoc perlvar
> How come it's not possible to do something like:
>
> print "";
> print `time`;
> print "";
No need to do a syste
Richard Heintze wrote:
> I have just discovered the the following code causes
> trouble when I have "use strict" and "use warn";
>
> use strict;
> use warnings;
>
> my $k = $q->param('xyz');
> print qq[ \$k = $k ];
>
> The problem is that if there is no GET/POST param
> called xyz, we are conca
Hi
I am trying to save (read / change / write) windows XP taskbar registry
values. Like show clock, always on top and same for desktop setting
How can I get registry settings, save it and change it again.
Can you please send me the source code.
Through which I can read and write taskbar va
I would like to enumerate a list and search through each element like
so:
If (/$logs[i]/)
{ # code}
I know the syntax is wrong so I was hoping someone could explain how to
do this.
Thanks.
--Paul
86 matches
Mail list logo