See answers below.
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: Quick Perl on Windows Newbie Questions
Hello ActiveState ActivePerl users (any on this list?) :)
I have a couple quick questions
Tim Johnson wrote:
See answers below.
Thanks Tim!
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: Quick Perl on Windows Newbie Questions
Hello ActiveState ActivePerl users (any on this list?) :)
I
Now, I'm nervous about posting my (typically stupid) questions to the list!
:)
Ron
Crud. Now I have to be equally nervous about posting replies that really
have no value.
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25
On 8/23/01 6:29 PM, Duston S. Horacek wrote:
>
> Hello, I'm looking to make a script that will load data into text boxes on a
> web page from a file off the web host, and then allow other text boxes to be
> modified by the user, then resaved to the same file..
>
> For instance
>
> WEB PAGE LOA
ok, say the web page looks something like this (Very simple)
http://www.excelgames.com/sample2.htm
goto that and look it over it gicves a visual example of what I'm trying to
do. As for what type or format of file, it doesn't matter as I haven't made
it yet, as long as the same file can be read
Hi all,
Let's start off with some simple code..
my $arg = &SomeFunction ( my @arry = qw/one two three/)
sub SomeFunction {
my @array = @_[0];
for (my $i =0; i < @array; i ++ ) {
print "$array[0][$i]
}
}
Ok now I understand what the problem is, but I don'
On Tue, Oct 21, 2008 at 08:49, birdinforest <[EMAIL PROTECTED]> wrote:
> I am a student and enrolled Unix programing this semester.
> There are two questions relating to perl I can not work out in the
> last exam ( Actually I have write out my code, however the exam system
> m
birdinforest wrote:
>
> I am a student and enrolled Unix programing this semester.
> There are two questions relating to perl I can not work out in the
> last exam ( Actually I have write out my code, however the exam system
> marked it as "wrong"). Please help me to po
On Tue, Oct 21, 2008 at 10:43, Rob Dixon <[EMAIL PROTECTED]> wrote:
snip
snip
> use strict;
> use warnings;
>
> print join('', "@ARGV" =~ /[0-9]/g), "\n";
snip
The perl interpreter in my brain throws a syntax error on the line 4
character 15.
Since you have put your code out there here is mine
birdinforest wrote:
I am a student and enrolled Unix programing this semester.
There are two questions relating to perl I can not work out in the
last exam ( Actually I have write out my code, however the exam system
marked it as "wrong"). Please help me to point out the fau
Thanks for your suggestions and all of them make sense. However, since
I am a totally beginner never learned programing, it should take me
sometime to understand them clearly. I will also try to get answer
from my lecturer, then post here that what I have learned from both
questions.
Programing
H all,
I need to split a file containing three columns of data as shown below
into three separate files. Each split file should contain row names and
one column of data and the column name should be the file names. Is
there any perl advanced function that allow me to do this?
probe set
E
Besides this forum, does anyone know of a good Perl/Tk email list/forum in
which to ask questions about Perl/Tk?
my little hard drive fast! Fortunately the problem was
caught in time and easily fixed. It only took a few hours to delete
the error file and clean up the code, and now the program runs much
faster as well. Whew! I hope you got a chuckle out of that little
adventure. Now to my questions.
ZHAO, BING wrote:
But for Mail::Send, I downloaded this huge file
MailTools-1.67. I dug several modules out like Send.pm, Mailer.pm etc
and saved them in the current directory.
Well, that's not how you install modules. Read the README inside the
MailTools tarball. And read perldoc perlmodinsta
> -Original Message-
> From: ZHAO, BING [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 16, 2005 3:26 PM
> To: beginners@perl.org
> Subject: follow-up questions on Mail::Send
>
> Hi,
> I have used small single package named as X.pm
befor
Oh, I indeed did what you'll just told me to do:
1. I first downloaded this MailTools-1.67.tar.gz
2. ungziped it
3. cd MailTools-1.67
4. Moreed Readme, followed the instructions, until the last step, "make install" failed, still
lots of files including a lib/ were generated.
5. Tried to run my fi
ZHAO, BING wrote:
Oh, I indeed did what you'll just told me to do:
1. I first downloaded this MailTools-1.67.tar.gz
2. ungziped it
3. cd MailTools-1.67
4. Moreed Readme, followed the instructions, until the last step, "make
install" failed, still lots of files including a lib/ were generated.
> -Original Message-
> From: ZHAO, BING [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 16, 2005 4:09 PM
> To: beginners@perl.org
> Subject: Re: follow-up questions on Mail::Send
>
> Oh, I indeed did what you'll just told me to do:
> 1. I first d
Folks,
I've run into a couple of issues with use and was hoping someone could
help me come up with a solution.
First, I use a specific module in a work environment to set some global
variables. I want to re-use my code in another environment which doesn't
have the specific configuration module. I
e:
<http://bioperl.org/mailman/listinfo/bioperl-l>
Archives:
<http://bioperl.org/pipermail/bioperl-l/>
Subscribe / Unsubscribe:
<http://bioperl.org/mailman/listinfo/bioperl-l>
But that said, if you get no help over there, by all means ask away on
this list. I'm ce
;
>...
>
>or
>
>use Win32::ODBC;
>$data = new Win32::ODBC("DSN = teradata1; UID=uname; PWD=moo;");
>...
>
>My questions are:
>
>(1) How do I create an encrypted file to store "moo", open that file and
>pass "moo" to t
>Give us another chance...
For what it's worth, "giving up" on the list this early in the
game doesn't impress me very much. If someone wants to be that
close-minded [1] without further investigation [2], then good
riddance - they're not gonna make good programmers, so why waste
our time [3] tryin
you designate repository mirror sites, and so on).
Will be glad to provide error messages, but wish to read up first if
possible. On the specifics of the questions, do they really want the host
name of the box i'm on? Ok [EMAIL PROTECTED], but is that needed?
And, i'm accessing thru a
how does "shift" work? In other words what if I do this
&Somefunction($var1, \@arry)
sub SomeFunction {
my $var = $_[0]
my $array = shift;
foreach(@{$array}) {
print "$_\n";
}
}
How does the shift operator know which is which? I called it specificall
. McCoy
Cc: [EMAIL PROTECTED]
Subject: Re: Arrays 1x3 or 3x1 - The real questions
how does "shift" work? In other words what if I do this
&Somefunction($var1, \@arry)
sub SomeFunction {
my $var = $_[0]
my $array = shift;
foreach(@{$array}) {
if you write
my $var2 = shift;
then $var2 will be an array reference to @arry.
HTH,
Tanton
- Original Message -
From: "Steven M. Klass" <[EMAIL PROTECTED]>
To: "Brett W. McCoy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February
On Feb 12, Steven M. Klass said:
>&Somefunction($var1, \@arry)
>
>sub SomeFunction {
> my $var = $_[0];# XXX you were missing a ; here
> my $array = shift;
Uh, $array and $var have the same value now. shift() removes the first
element from an array (defaulting to @_) and returns
> After that, if you write
> my $var2 = shift;
> then $var2 will be an array reference to @arry.
>
> HTH,
> Tanton
> - Original Message -
> From: "Steven M. Klass" <[EMAIL PROTECTED]>
> To: "Brett W. McCoy" <[EMAIL PROTECTED]>
> Cc:
It is really sad when people can't get their MLA
(Multi-Letter Acronym) correct!
It should be TIMTOWTDI
"There Is More Than One Way To Do It"
which is the Perl Hackers motto.
Good Luck!
Dennis
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Dear All,
I have sort of questions, would you please give me some hint, even refering me to a
perldoc would be nice too.
1. When I open a text file with *lines, however, I just want to read the first line,
would this be a good idea ?
open (FILE, "textfile.txt"); $firstline = ; c
On Tue, 12 Feb 2002, Steven M. Klass wrote:
> Let's start off with some simple code..
>
> my $arg = &SomeFunction ( my @arry = qw/one two three/)
>
>
>
> sub SomeFunction {
> my @array = @_[0];
No, you are only grabbing the first element of @_. You should either pass
the array as a refere
Hi all,
> Let's start off with some simple code..
>
> my $arg = &SomeFunction ( my @arry = qw/one two three/)
>
> sub SomeFunction {
> my @array = @_[0];
> for (my $i =0; i < @array; i ++ ) {
> print "$array[0][$i]
> }
> }
>
> Ok now I understand what the problem is, but I don't
> know
On Thu, Feb 04, 2010 at 10:22:00PM +, Tony Esposito wrote:
> Besides this forum, does anyone know of a good Perl/Tk email list/forum in
> which to ask questions about Perl/Tk?
https://mailman.stanford.edu/mailman/listinfo/ptk
It's rather quiet, so be patient.
--
Paul
> Besides this forum, does anyone know of a good Perl/Tk email
> list/forum in which to ask questions about Perl/Tk?
You can try comp.lang.perl.tk which is fairly quiet
--
Owen
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: begin
Inventor wrote:
[snip Apache tragedy]
My program accesses small text configuration files, allowing the user
to change them with a CGI interface before writing them out and doing
its compute thing. The problem is that each user needs to have their
own set of configuration files so that the us
w
> hours to delete
> the error file and clean up the code, and now the
> program runs much
> faster as well. Whew! I hope you got a chuckle out
> of that little
> adventure. Now to my questions.
Glad to hear that you've resolved it.
When you put 'use strict' and
that were
eating up my little hard drive fast! Fortunately the problem was
caught in time and easily fixed. It only took a few hours to delete
the error file and clean up the code, and now the program runs much
faster as well. Whew! I hope you got a chuckle out of that little
adventure. Now to my
Hello list,
I am trying to make my own modules for some tasks, and I am trying to grasp
the basics before I go any further. Here is a dumb test module that I wrote
just to see how things are done - it takes an array of 3 values and adds
them together, returning the values on request.
### 3-e
I'm looking at the source code for queue.pm and I'm quite surprised at how
short it is. I have some questions about the syntax.
(1) What does this colon (": shared") mean on line 69? I have not seen a
colon used like this before.
67 sub new {
68 my $class =
> Folks,
>
> I've run into a couple of issues with use and was hoping someone could
> help me come up with a solution.
>
> First, I use a specific module in a work environment to set some global
> variables. I want to re-use my code in another environment which doesn't
> have the specific configu
Wiggins d Anconia wrote:
>> Folks,
>>
>> I've run into a couple of issues with use and was hoping someone
>> could help me come up with a solution.
>>
>> First, I use a specific module in a work environment to set some
>> global variables. I want to re-use my code in another environment
>> which
On Thu, 1 Jan 2004 05:18:00 -0800 (PST)
J Ingersoll <[EMAIL PROTECTED]> wrote:
> IS THERE a manual / document somewhere that explains in a little
> detail what is being asked in this config process?
perldoc CPAN
That will answer all your questions
--
Owen
--
To unsubsc
perldoc CPAN
>
> That will answer all your questions
>
>
> --
> Owen
>
Thanks and sorry for my somewhat inexact post initially (frustration :^{
Regarding running perl -MCPAN -e 'install Bundle::CPAN' ...
In my perl 5.6.1 system,
after switching from a sudo'
--As off Saturday, January 3, 2004 3:41 PM -0800, J Ingersoll is
alleged to have said: (Snipped)
As for my request for documentation, it was mainly for ---
Q: Should all FTP connections be passive (y|n) ?
One way visibility
... So for these types of firewall FTP connec-
--- Daniel Staal <[EMAIL PROTECTED]> wrote:
>
> --As for the rest, it is mine.
>
> Well, if you are having problems I'd say yes. ;-)
>
> FTP has issues with firewalls. (The design doesn't work well with
> them.) If you are behind a firewall you probably only can do
> 'passive' ftp. Eithe
On Fri, 1 Mar 2002, Dennis G. Wicks wrote:
> It is really sad when people can't get their MLA
> (Multi-Letter Acronym) correct!
>
> It should be TIMTOWTDI
>
> "There Is More Than One Way To Do It"
I prefer
http://www.chapelperilous.net/
-
On Fri, 1 Mar 2002, Brett W. McCoy wrote:
> On Fri, 1 Mar 2002, Dennis G. Wicks wrote:
>
> > It is really sad when people can't get their MLA
> > (Multi-Letter Acronym) correct!
> >
> > It should be TIMTOWTDI
> >
> > "There Is More Than One Way To Do It"
>
> I prefer
Err, ignore that... I h
Yeah, yeah. So I made a typo. :p
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 18:00
To: [EMAIL PROTECTED]
Subject: TIMTOWDI Was: RE: some questions about for, foreach
It is really sad when people can't get their MLA
(Multi-Letter Ac
I've removed [EMAIL PROTECTED] from the Cc: list. I don't see how any
of this directly relates to CGI. Please avoid cross-posting unless relevant
and absolutely necessary.
On Sat, Mar 23, 2002 at 05:30:25AM +0800, Connie Chan wrote:
> 1. When I open a text file with *lines, however, I just wan
sentence =~ s/one/two/gi;
#$sentence is now "two must always watch what two says in public."
or
$sentence =~ s/one/two/i;
#$sentence is now "two must always watch what one says in public."
8. Not sure on this one.
9. Check CPAN http://search.cpan.org
Whew! Good questions. I
Oops! The exclamation point in number 7 was a typo.
-Original Message-
From: Timothy Johnson
To: 'Connie Chan '; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 3/22/02 1:59 PM
Subject: RE: Sort of Conceptual, Syntax, and modules related questions
1. It will only read the
Hi Connie,
> On Sat, Mar 23, 2002 at 05:30:25AM +0800, Connie Chan wrote:
> > 1. When I open a text file with *lines, however, I just want to read the
> > first line, would this be a good idea ? open (FILE, "textfile.txt");
> > $firstline = ; close (FILE); would this process run till EOF, or
> >
Hello,
I am looking at the "Insert comma's into a number" script in Oreily's Perl
Cookbook (pg 64) and have some questions. The script (more or less) is below followed
by some output and questions:
#!/usr/bin/perl
my $num = reverse $ARGV[0];
On Mar 25, Peter Rabbitson said:
package CalcTest;
use warnings;
use strict;
my @collect;
This is suspect. You shouldn't be using this array. You should be
storing data in your object.
1;
It's probably safer to put this at the very end of your module, just in
case you have other code (non-subr
Siegfried Heintze wrote:
I'm looking at the source code for queue.pm
Perl is case sensitive so that should be Queue.pm.
and I'm quite surprised at how
short it is. I have some questions about the syntax.
(1) What does this colon (": shared") mean on line 69? I have not se
Problem with Thread::Queue fixed. The sample program for Thread::Queue is
incorrect (or maybe I just missed the ":shared" when declaring variable @Q).
Well it is definitely incorrect in Larry's book: Programming Perl, 3rd
Edition.
Do they need a volunteer to update the documentation?
This works f
: <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 3:26 PM
Subject: Re: Questions about game design in perl
On Apr 6, 2004, at 2:11 PM, Luinrandir Hernsen wrote:
Hallo
Howdy.
I am trying to build a game in perl. I have questions.
This is a story book game... here is the story, make a choice
gt;
Cc: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 4:48 PM
Subject: Re: More Details --- Re: Questions about game design in perl
> Let's keep this discussion on the list so all can learn and help.
>
> On Apr 6, 2004, at 3:08 PM, Lu
Luinrandir Hernsen wrote:
I went to www.MySQL.com
Do I download for windows and DBI for perl
do I need
Contributed APIs:
DBI -- for connecting to MySQL from Perl
I downloaded MySQL 4.0
Your MySQL database should be installed and
functioning on Unix then.
I have OptiPerl, which I use top write per
On Nov 9, Robert Thompson said:
>I am looking at the "Insert comma's into a number" script in
>Oreily's Perl Cookbook (pg 64) and have some questions. The script (more
>or less) is below followed by some output and questions:
You copied it incorrectly, o
ript in
> >Oreily's Perl Cookbook (pg 64) and have some questions. The script (more
> >or less) is below followed by some output and questions:
>
> You copied it incorrectly, or there is a typo in the book:
>
> > $num =~ s/([0-9]{3}) (?=\d) (?!=\d*\.)/$1,/
> I knew Jeff would be the first one answering this one, too bad I could not bet on
>this.
I felt it would have been too obligatory if I had opened the e-mail "Dear Mr. Pinyan,"
:)
> > You copied it incorrectly, or there is a typo in the book:
You're right, I typed it wrong. I am learning ex
On Nov 9, Robert Thompson said:
>I felt it would have been too obligatory if I had opened the e-mail
>"Dear Mr. Pinyan," :)
Heehee. :)
Honestly, though, I'm only this good so that other people can be good. It
does the Perl community no good to have a handful of illuminati -- if they
become ina
the outer {} to create the hash reference?!?)
Sorry if this is very long. I wanted to make sure to include enough
information to make the questions clear.
Thanks in advance, Telemachus
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Hello all,
I have two quick questions that I would love some help on. I have looked
at the manual (Programming Perl) and I didn't get it, hence my email.
Question 1 - How can I make variables in a function (subroutine) global
(accessible from other functions)?
Question 2 - I am tryi
r that sub ?
Addition Questions :
1. Is that anyway to do a "random write", while I can use tell and seek for
random read.
Note that I am not dealing with Database, just handling a simple huge text
file about 500MB.
If there is such method, is that a Overwirte activity or a Insert ac
On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote:
> I have a question though, will someone still be able to post to the list
> if they are no longer subscribed to them??
An Interesting problem -
What I do is have my mail filter my lists into the requisite folders
and then go at t
> On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote:
>
> > I have a question though, will someone still be able to post to the list
> > if they are no longer subscribed to them??
>
> An Interesting problem -
>
> What I do is have my mail filter my lists into the requisite folder
n parentheses (forcing the items to be treated as a list?) and
you can't use {} because of the outer {} to create the hash reference?!?)
Sorry if this is very long. I wanted to make sure to include enough
information to make the questions clear.
Another way to the same thing would be:
$/ =
_of_Records. The filter
> /(.*)/ ensures that no newlines are included in the keys or values of
> the hash.
Thanks for your careful explanation. I was just in the process of writing
that I had worked out that the map keeps newlines out. I'll push my luck
and ask two further question
On Mon, Nov 17, 2008 at 13:21, John W. Krahn <[EMAIL PROTECTED]> wrote:
snip
>> push(@Array_of_Records, { map /(.*)/, @fields });
>
> Store the fields as a hash at the end of @Array_of_Records. The filter
> /(.*)/ ensures that no newlines are included in the keys or values of the
> hash.
snip
r your careful explanation. I was just in the process of writing
that I had worked out that the map keeps newlines out. I'll push my luck
and ask two further questions. First, what exactly is the "null field" at
the start of my first line, or where does it come from?
split always (un
On Mon, 2008-12-22 at 15:18 -0700, Eric Krause wrote:
> Hello all,
> I have two quick questions that I would love some help on. I have looked
> at the manual (Programming Perl) and I didn't get it, hence my email.
>
> Question 1 - How can I make variables in a function
Eric Krause wrote:
Hello all,
Hello,
I have two quick questions that I would love some help on. I have looked
at the manual (Programming Perl) and I didn't get it, hence my email.
Question 1 - How can I make variables in a function (subroutine) global
(accessible from other func
tems about something
you don't care about just to find out if someone responded to your message.
-Original Message-
From: Tirthankar C. Patnaik
To: drieux
Cc: [EMAIL PROTECTED]
Sent: 6/29/02 11:18 PM
Subject: Re: Posting Perl Questions - was Re: Advanced Users in The
Beginners List
>
On Saturday, June 29, 2002, at 11:26 , Timothy Johnson wrote:
[..]
> For those of you using Outlook (you know who you are, that's right, you in
> the red shirt),
[..]
actually there are a Lot of folks who have a lot of
really good email application - and/or have even
more interesting 'adult' sty
I have a script that generates test questions and grades them . I was
asked to make them generate in a random order , can someone point me in the
right direction
They come in two files make_test.cgi and grade.cgi
#! /usr/bin/perl
#
#make test for Cram Program
#
# version
M-CONT [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 1:51 PM
> To: Jim (E-mail); Beginners (E-mail)
> Subject: I am clueless about making my test generator program to
> generate random questions Help
>
>
> I have a script that generates test questions and grad
I have a script that print test questions and grades them... how do I make
them print a random order, and a certain amount ??
code
$dbh =DBI ->connect($data_source, $username, $password) or die "cant connect
to
$data_source : my $dbh-> errstr\n";
401 - 480 of 480 matches
Mail list logo