Re: Form reports

2002-02-12 Thread Jon Molin
Naika - EV1 wrote: > > Bare with me but I'm a beginner and new to this list. > > I need advice on poll results. What should I be researching? I have forms > submitting off websites and I can direct them to email the results but how > do I write them to a file to be redisplayed on a webpage? A

Re: Does anyone know anything about this..?

2002-02-12 Thread Eric Beaudoin
At 01:47 2002.02.13, you wrote: >I have data like this. > >Computername:Description:Failed Pings > >At present I am putting this data into seperate arrays >and using an index to get it out in order. Not an >extremely efficient way to do this and I will need to >add more fields later and the like.

Re: Does anyone know anything about this..?

2002-02-12 Thread Tanton Gibbs
Ok, I'm a little confused about what you want, but I'll try to answer. If you have a hash: my %hash; $hash{computername}{description}{'failed pings'} = 3; then saying: my @keys = keys %hash; print "@keys"; will print: computername In other words, the keys function will not find keys in all

Does anyone know anything about this..?

2002-02-12 Thread Lorne Easton
I have data like this. Computername:Description:Failed Pings At present I am putting this data into seperate arrays and using an index to get it out in order. Not an extremely efficient way to do this and I will need to add more fields later and the like. I have considered using a hash, but if

Re[2]: can't print input argument

2002-02-12 Thread Daniel Gardner
Wednesday, February 13, 2002, 1:06:18 AM, Timothy Johnson wrote: > Looking at the command-line thing more closely, something like this should > work... C:\>> perl -e "while(<>){s/good/bad/;print}" test.txt or perl -pi -e 's/good/bad/' test.txt take a look in perldoc perlrun, there's all sort

Re: Use of Spllic command

2002-02-12 Thread John W. Krahn
Kevin Butters wrote: > > A real beginner here. > > I have an array with 5 elements, 0-4. I want to insert > values into the array at position 2. Do I use the > splice command? Yes. > splice(@array, 1, "value"); > print "@array\n"; > 0 1 2 3 4 5 $ perl -le'$,=$"; @array = (0 .. 4); print @arra

Re: Array question

2002-02-12 Thread Brett W. McCoy
On Tue, 12 Feb 2002, Michael Fowler wrote: > Consider: > > @week = qw(Monday Wednesday Friday); > print "@week\n"; > > splice(@week, 1, 0, "Tuesday"); > print "@week\n"; > > splice(@week, 3, 0, "Thursday"); > print "@week\n"; Duh, didn't even consider using a 0 offset in

Re: Array question

2002-02-12 Thread Brett W. McCoy
On Tue, 12 Feb 2002, Kevin Butters wrote: > I have an array that I want to insert elements into. I > want to insert elements at specific points in the > array. > > Example: > > use strict: > > @week = ("Monday", "Wednesday", "Friday"); > > I want to expand the array to include Tuesday after > el

Re: Split function

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, Kevin Butters said: >my $date_time = localtime; >print "$date_time"; > >split $date_time,/ /; You've got that backwards. And where are you storing the results? @parts = split / /, $date_time; And you might want to use split / +/ or split ' ' instead. -- Jeff "japhy" Pinyan

Re: finding max value

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, Hans Holtan said: >I have a set of functions that give numeric results, and I need to >compare them and choose the maximal value. Is there any simple way >of finding max? Go through them one at a time, and keep track of the largest value: my $max = $values[0]; for (@values) {

FW: eqvt. to MACROS

2002-02-12 Thread Lawrence Liew
Hi there, Jenda suggested that I post my question on this list. Right. I want to merge 4 RTF documents into a single doc because they're of different parts, after being converted from Framemaker. For example: BrisCasAgrA92_01B_.rtf (3rd) BrisCasAgrA92_01B_C.rtf (1st) BrisCasAgrA92_01B_E.rtf (4t

Re: Array question

2002-02-12 Thread Michael Fowler
On Tue, Feb 12, 2002 at 05:07:45PM -0800, Kevin Butters wrote: [snip] > @week = ("Monday", "Wednesday", "Friday"); > > I want to expand the array to include Tuesday after > element 0 and Thursday after element 1 > > I thought that splice was the correct way but > apparently not. It is, what mak

finding max value

2002-02-12 Thread Hans Holtan
Hi everyone, I have a set of functions that give numeric results, and I need to compare them and choose the maximal value. Is there any simple way of finding max? Hans -- Hans E. E. Holtan Graduate Student UC Berkeley-Department of Plant and

RE: Split function

2002-02-12 Thread Timothy Johnson
localtime() actually returns an array, so if you do this: @date = localtime(); Then your array will be populated with the information you're looking for. Personally, I prefer to do it this way: ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(); Just remember that you h

Split function

2002-02-12 Thread Kevin Butters
I am difficulty in using the split function to extract the current date from the @date_time variable. #! /usr/bin/perl -w #Class 4 assignment # define hash use strict; my %days; %days = ( 'mon' => 'Monday', 'tue' => 'Tuesday', 'wed' => 'Wednesday', 'thu' =>

Re: Array question

2002-02-12 Thread Christopher Solomon
On Tue, 12 Feb 2002, Kevin Butters wrote: > Beginner question: > > .. > > > I have an array that I want to insert elements into. I > want to insert elements at specific points in the > array. > > Example: > > use strict: > > @week = ("Monday", "Wednesday", "Friday"); > > I want to expand the ar

RE: can't print input argument

2002-02-12 Thread Timothy Johnson
Looking at the command-line thing more closely, something like this should work... C:\> perl -e "while(<>){s/good/bad/;print}" test.txt but again, I don't use the command-line all that much. -Original Message- From: Booher Timothy B 1stLt AFRL/MNAC [mailto:[EMAIL PROTECTED]] Sent: Tues

Array question

2002-02-12 Thread Kevin Butters
Beginner question: .. I have an array that I want to insert elements into. I want to insert elements at specific points in the array. Example: use strict: @week = ("Monday", "Wednesday", "Friday"); I want to expand the array to include Tuesday after element 0 and Thursday after element 1

RE: can't print input argument

2002-02-12 Thread Stout, Joel R
try: perl program.pl file.txt and then check $ARGV[0] It should contain "file.txt". I've dealt with this before using Windows and line args. Anyone more experienced (Jenda?) can help out more. J > -Original Message- > From: Wagner-David [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, Fe

RE: can't print input argument

2002-02-12 Thread Wagner-David
If you don't know how many there will be you can try something like: printf "%-s "x scalar(@ARGV), @ARGV; # @ARGV is what you check when seeking arguments from the commnad line # in passing to a subroutine the @_ has the same connotation as @ARGV Wags ;) -Original Me

RE: can't print input argument

2002-02-12 Thread Timothy Johnson
To be honest, I never use the command-line functions, but as for the arguments, I think your problem is that the argument/s are passed via the @ARGV array. Try this: print "$ARGV[0]\n"; #print first element of argument array -Original Message- From: Booher Timothy B 1stLt AFRL/MNAC [

can't print input argument

2002-02-12 Thread Booher Timothy B 1stLt AFRL/MNAC
Hello - more trouble, I just can't seem to write a program that prints an argument it's passed: My script contains: #not working print "$ARGV\n"; when I run this I get: c:\work.pl "this" c:\ confused by this but also confused that I can't run anything from the command line in windows.

Time conflict using utime

2002-02-12 Thread Student of Perl
I have used Net::FTP for ftp coding in my script. my problem is related to file modification time. I use $remote_date=$ftp->mdtm($remote_file); #get remote_file to local disk $ftp->get($remote_file); #and then set its date to that of remote file's date utime $remote_date,$remote_date,$remot

Form reports

2002-02-12 Thread Naika - EV1
Bare with me but I'm a beginner and new to this list. I need advice on poll results. What should I be researching? I have forms submitting off websites and I can direct them to email the results but how do I write them to a file to be redisplayed on a webpage? Actually I know how to write to a

RE: windows perl just doesn't seem to work

2002-02-12 Thread Timothy Johnson
That is because you are only printing the changes to the screen. Try this: open(IN,"fileToClean.asc"); while(){ s/Good/Bad/; push @out,$_; } close IN; open(OUT,">fileToClean.asc"); print OUT @out; -Original Message- From: Booher Timothy B 1stLt AFRL/MNAC [mailto:[EMAIL PROTECTED

windows perl just doesn't seem to work

2002-02-12 Thread Booher Timothy B 1stLt AFRL/MNAC
Hello - I am very frustrated - after quite a while I can't get my ActivePerl to work on anything in windows. Say I want to find the word Good and change it to Bad in the file MyFile.asc I try: C:\changeIt.pl -e "s/Good/Bad/" MyFile.asc Then open MyFile.asc and nothing happens - then I try th

Re: Time conversion question

2002-02-12 Thread Shawn
Thank you, this is the easiest and most directly applicable method for my purposes. All I need to do is answer the question: "Is MM/DD/ hh:mm:ss more than 10 days ago? 10 minutes?" and this makes it very easy! Thanks again! On 02/12, Briac Pilpr? said something like: > On Tue, 12 Feb 2002 1

Re: Is there anyway to modify @INC directory list once and for all ?

2002-02-12 Thread Dave K
I use cygwin (with and without perl) and ActiveState perl in a variety of situations. To modify @INC so that Apache uses the right one in the right situation I was using a begin block to modify @INC where needed. Then I thought a module might be more to the point: #!E:/Perl/bin/perl -w # my path

Re: Reading Multiple lies

2002-02-12 Thread Jenda Krynicky
From: "Raj Mohan" <[EMAIL PROTECTED]> > Is that anybody can help me to find a solution for the blow:- > > I have a file like this:- > > Input File:- > > > CDATA #IMPLIED > > > In this I need to read (store into a string) multiple lines from: > " CDATA #IMPLIED >" > > Pls.

Re: Mail::Sender

2002-02-12 Thread Jenda Krynicky
From: Nikola Janceski <[EMAIL PROTECTED]> > Okay I am at a loss here... > > I am using Mail::Sender to generate e-mails from a cgi page. > I am successful with genereating it using a regular script run from a > command line. > > But when I put the code into my cgi it gives me

Re: Time conversion question

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 17:03:00 -0600, Shawn <[EMAIL PROTECTED]> wrote: > How might I convert a date/time string to epoch seconds? > > For example, taking "02/05/2002 02:31:14" and convert to epoch seconds. One easy way to do it is to use the standard Time::Local module: #!/usr/bin/perl -w use str

RE: Time conversion question

2002-02-12 Thread Hanson, Robert
My favorite way is to use Date::Parse (http://search.cpan.org/doc/GBARR/TimeDate-1.10/lib/Date/Parse.pm) use Date::Parse; my $epoch = str2time("02/05/2002 02:31:14"); It comes with the Time-Date bundle (http://search.cpan.org/search?dist=TimeDate) which also includes the method time2str() for

Time conversion question

2002-02-12 Thread Shawn
How might I convert a date/time string to epoch seconds? For example, taking "02/05/2002 02:31:14" and convert to epoch seconds. -- Shawn Leas [EMAIL PROTECTED] I have a switch in my apartment... it doesn't do anything Every once in a while, I turn it on and off One day I got a call...

Re: Use of Spllic command

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 14:46:45 -0800 (PST), Kevin Butters <[EMAIL PROTECTED]> wrote: > I have an array with 5 elements, 0-4. I want to insert > values into the array at position 2. Do I use the > splice command? > > splice(@array, 1, "value"); > print "@array\n"; > 0 1 2 3 4 5 You forgot the lengt

Use of Spllic command

2002-02-12 Thread Kevin Butters
A real beginner here. I have an array with 5 elements, 0-4. I want to insert values into the array at position 2. Do I use the splice command? splice(@array, 1, "value"); print "@array\n"; 0 1 2 3 4 5 __ Do You Yahoo!? Send FREE Valentine eCards w

Sybase & Perl DBI

2002-02-12 Thread Angus Laycock
Hi, I have written a script the handles calls to a Sybase Database. The only problem I have is handling the "Return Code" from Stored Procedures. I have gone through the PERL DBI book but the only reference I can find in the Appendix(Page 326), it is to do with syb_result_type. I have used

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
So basically this > If, inside Somefunction, you write > my $var = shift; > then $var will be the value of $var1 > After that, if you write > my $var2 = shift; > then $var2 will be an array reference to @arry. works in order. The first shift grabs the first variable, the second grabs the seco

RE: t-shirts

2002-02-12 Thread Balint, Jess
Did I miss the answer to this? Where can these `t-shirts` be obtained? -Original Message- From: Michael Kelly [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: Re: t-shirts On 2/11/02 1:02 PM, Matthew Peter Lyon <[EMAIL PROTECTED]> wrote:

RE: Mail::Sender

2002-02-12 Thread Nikola Janceski
It's a bug... I forgot the 'to' and it just dies at the line $sender->Body(); I am submitting a bug report. It should handle an e-mail without a to and only a cc, or bcc. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:45 PM To: '[E

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Jeff 'japhy' Pinyan
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

Re: time setting for local and remote files

2002-02-12 Thread John W. Krahn
Student Of Perl wrote: > > use Net::FTP; > > use constant HOST=>'ftp.somexample.com'; > $ftp=Net::FTP->new(HOST) or die "connection error"; > $ftp->login('anonymous') or die $ftp->message; > $ftp->binary or die $ftp->message; > $ftp->get("sample.txt") or die $ftp->message; > $ftp->quit(); > > I

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Tanton Gibbs
Shift removes the first element of the array it is passed...so, take the example: my @arr = (1, 2, 3, 4); my $val = shift @arr; my $val2 = shift @arr; print "\$val = $val\n"; print "\$val2 = $val2\n"; print "\@arr = @arr\n" This will print out $val = 1 $val2 = 2 @arr = 3 4 As you can see, shif

Mail::Sender

2002-02-12 Thread Nikola Janceski
Okay I am at a loss here... I am using Mail::Sender to generate e-mails from a cgi page. I am successful with genereating it using a regular script run from a command line. But when I put the code into my cgi it gives me this stupid error, (I upgraded the module to the latest). The code is almos

RE: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Timothy Johnson
If shift appears by itself, then it removes the first element in the @_ array and returns it. If an array is specified(i.e. shift @array), then it uses that array. -Original Message- From: Steven M. Klass [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:20 PM To: Brett W. M

RE: Anonymous hash question

2002-02-12 Thread Nikola Janceski
Thanx for the help.. it turns out that wasn't even my problem. I am using a stupid older version of the module (which probably didn't work). -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:21 PM To: Nikola Janceski Cc: '[EMAIL PRO

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
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

Re: Anonymous hash question

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, Nikola Janceski said: >I am using a module function (method) that requires an anonymous hash as the >first parameter. No, it requires a hash reference. >ie. $sender->OpenMultipart({from => $FORM{'from'}, to => $FORM{'to'}, cc => >$FORM{'cc'}, > subject => $FORM{

Re: Anonymous hash question

2002-02-12 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "Nikola Janceski" <[EMAIL PROTECTED]>: > I am using a module function (method) that requires an anonymous hash as the first >parameter. > > ie. $sender->OpenMultipart({from => $FORM{'from'}, to => $FORM{'to'}, cc => >$FORM{'cc'}, >s

Anonymous hash question

2002-02-12 Thread Nikola Janceski
I am using a module function (method) that requires an anonymous hash as the first parameter. ie. $sender->OpenMultipart({from => $FORM{'from'}, to => $FORM{'to'}, cc => $FORM{'cc'}, subject => $FORM{'subject'} } ) || die "$Mail::Sender::Error\n"; but sometimes $FORM{'cc'}

Re: Troubles with reg exp

2002-02-12 Thread Tanton Gibbs
Sorry if I'm duping someone else, but I came in late on this post. It is always useful to remember that tr will count the number of times a character matched. So, my $count = $str =~ tr/://; will return the number of colons there are in $str. Therefore, you could see if $count was == 6. HTH,

RE: Troubles with reg exp

2002-02-12 Thread Mark Anderson
If you really want a regexp: if (/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:[^:]*$/) { This looks for ^ (the beginning of the line), [^:]* (0 or more characters that are not ':'), : (a colon), and ultimately $ the end of the line. /\/\ark -Original Message- From: Stu

RE: regexp for validating DOS 8.3 filename

2002-02-12 Thread Jason Larson
> I'm sure this is simple but I'm getting more and more confused: Don't feel bad - I stay that way! :) > I want to validate input so that it is either: >a valid dos filename (we still use it) >up to 12 alphanumeric characters (inc spaces) >nothing (in which case 'none' would be enter

RE: Waning : Opinion! [was RE: Complete Beginner Looking for Advise!]

2002-02-12 Thread Dean Theophilou
That's ok. You're not the only one. :) Dean -Original Message- From: Deen Hameed [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 11:30 PM To: Dean Theophilou Cc: Timothy Johnson; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Waning : Opinion! [was RE: Complete Beginner

RE: ODBC

2002-02-12 Thread Sean O'Leary
At 01:41 PM 2/12/2002, you wrote: >I know there is a Win32::ODBC module, and I think there is a DBI::ODBC? Well, there's DBD::ODBC. DBI is the independent interface, that is, independent of any particular database. On the back end of that, DBD::* modules plug in to provide functionality for e

Re: Syntax of Messages

2002-02-12 Thread Anthony LaBerge
Thank you Rob. That was the answer I was looking for. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Syntax of Messages

2002-02-12 Thread Hanson, Robert
$_ is the default scalar variable (sort of). Perl will sometimes set this variable for you so that you don't need to create your own. It's just a shortcut of sorts. Here is an example... foreach ( @list ) { print $_; } For each item in the array @list Perl will set the variable $_ to

Re: Syntax of Messages

2002-02-12 Thread Tyler Longren
you use $ for variables and @ for arrays. the Quantum::Entanglement module is a quantum programming module. It tries to replicate what it would be like to program on a quantum computer. Tyler - Original Message - From: "Anthony LaBerge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread david wright
Bob saved my sanity with these lines: "Now, I suspect that when you are prompted to enter a path at lines 22-23, you are entering backslashes. In this case, the backslashes *are* being passed to chdir(), and since they aren't part of the path name, the chdir() is failing. Backslashes only escap

Syntax of Messages

2002-02-12 Thread Anthony LaBerge
I'm a new subscribee, and also an Extream Newbie at perl, so I'm having trouble understanding the syntax of the coding, You use $_, @_, and other things that I do not quite understand. There is also one more thing I donot understand, that is: What are the ' use Quantum::Entanglement ' lines in

Re: getting a block of text from file

2002-02-12 Thread Michael Fowler
On Tue, Feb 12, 2002 at 09:47:07PM +1300, Chris Zampese wrote: [snip] > Content-Transfer-Encoding: quoted-printable > > The message of the email is here then it is followed by > > --=_NextPart_000_0118_01C1B358.DE107900 > (lots more lines of stuff) > > how would I get just the message into

RE: ODBC

2002-02-12 Thread Timothy Johnson
I know there is a Win32::ODBC module, and I think there is a DBI::ODBC? -Original Message- From: popusers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: ODBC Hi everybody! I'm working on Mandrake Linux, with Apache, Perl and Postg

Re: Net::Smtp help!

2002-02-12 Thread Jenda Krynicky
> >can anyone tell me who my subject line is not appearing when I use > >the following code, everything else works except that! > > I am on a Win98 system and all $variables are gathered from a > > form, as I said, all the other details appear except the subject. > > > >#!C:\Perl\bin\perl.exe

ODBC

2002-02-12 Thread popusers
Hi everybody! I'm working on Mandrake Linux, with Apache, Perl and Postgres, but soon my server it will be on win 2000, with iis, and sql server 2000. There is a module for ODBC connections that you recommend? Excuse my english. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: avoid Subroutine bits redefined

2002-02-12 Thread Jonathan E. Paton
--- John <[EMAIL PROTECTED]> wrote: > Is there any way to avoid these warnings if I have > multiple libraries that use strict. BTW, I think all of > mine use strict, I think the vendor's use Strict. Perl looks for 'strict' and 'Strict' as different modules, but they install themselves into the

Re: Is there anyway to modify @INC directory list once and for all ?

2002-02-12 Thread Paul Johnson
On Tue, Feb 12, 2002 at 09:01:01AM -0800, John wrote: > At Tuesday, 12 February 2002, Paul Johnson <[EMAIL PROTECTED]> wrote: > > > >Otherwise, stick with setting PERL5LIB. > > Is there also a PERLLIB (I have seen this referenced in vendor docs > for a product that comes with Perl 5.005_03) or i

regexp for validating DOS 8.3 filename

2002-02-12 Thread jpf
I'm sure this is simple but I'm getting more and more confused: I want to validate input so that it is either: a valid dos filename (we still use it) up to 12 alphanumeric characters (inc spaces) nothing (in which case 'none' would be entered by default Here's my snippet: #!/usr/bin/perl

avoid Subroutine bits redefined

2002-02-12 Thread John
Is there any way to avoid these warnings if I have multiple libraries that use strict. BTW, I think all of mine use struct, I think the vendor's use Strict. Subroutine bits redefined at c:\iw-home\iw-perl\lib/Strict.pm line 88. Subroutine import redefined at c:\iw-home\iw-perl\lib/Strict.pm li

Re: some perl documentation online

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, John said: >Maybe this one is better, go to http://jpw3.com/search.html, enter >perlre or whatever in the text box at the top, then hit tab, then >M, which will show the man page. Or just go to http://man.he.net/ >and do it the normal way. Don't know how current or how well transl

Re: some perl documentation online

2002-02-12 Thread John
At Tuesday, 12 February 2002, you wrote: > >On Feb 12, John said: > >>Many may already know of a resource like this but I just found it >>and think it's easier to use/search than corresponding command lines. >> >>http://www.mit.edu/perl/perl.html > >That page looks like a poorly translated versio

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Jonathan E. Paton
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

Re: [OT] Have a project? Need help? I'm your man

2002-02-12 Thread Johnathan Kupferer
You might want to look for volunteer oprotunities in your area. Its a great way to promote open-soure while building your resume. Schools and non-profits are often in need of people to put together networks, websites, and databases. The great thing about it is they're greatful for your help

RE: Removal from list

2002-02-12 Thread McCollum, Frank
Actually I just got removed, either from a request I sent last week or the list-owner saw my response a few minutes ago. FAQ at www.perl.org (bottom left hand corner, i think). -Original Message- From: James Lucero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:26 AM To:

Re: some perl documentation online

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, John said: >Many may already know of a resource like this but I just found it >and think it's easier to use/search than corresponding command lines. > >http://www.mit.edu/perl/perl.html Did MIT folk create that perlovl document? Because it's really horribly translated from Pod to HT

time setting for local and remote files

2002-02-12 Thread Student of Perl
use Net::FTP; use constant HOST=>'ftp.somexample.com'; $ftp=Net::FTP->new(HOST) or die "connection error"; $ftp->login('anonymous') or die $ftp->message; $ftp->binary or die $ftp->message; $ftp->get("sample.txt") or die $ftp->message; $ftp->quit(); I have the above script created.The site and f

Re: Is there anyway to modify @INC directory list once and for all ?

2002-02-12 Thread John
At Tuesday, 12 February 2002, Paul Johnson <[EMAIL PROTECTED]> wrote: > >Otherwise, stick with setting PERL5LIB. Is there also a PERLLIB (I have seen this referenced in vendor docs for a product that comes with Perl 5.005_03) or is this a typo, and if there are both what is the difference, prec

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Brett W. McCoy
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

Re: Is there anyway to modify @INC directory list once and for all ?

2002-02-12 Thread Paul Johnson
On Tue, Feb 12, 2002 at 05:02:01PM +0100, Teggy P Veerapen wrote: > Hello people, > > Well, I'm trying to figure out how to modify the perl @INC directory > list so that perl is able to find all required modules. In fact my problem > is that the @INC variable doesn't contain any of the direct

Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
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'

Re: Removal from list

2002-02-12 Thread Kevin Meltzer
http://learn.perl.org/ (click on FAQ) It is also mailed to the list every week. Cheers, Kevin On Tue, Feb 12, 2002 at 08:26:08AM -0800, James Lucero ([EMAIL PROTECTED]) said something similar to: > Where is the FAQ? --- [Writing CGI Applications with Perl - http://perlcgi-book.com] You have

some perl documentation online

2002-02-12 Thread John
Many may already know of a resource like this but I just found it and think it's easier to use/search than corresponding command lines. http://www.mit.edu/perl/perl.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Is there anyway to modify @INC directory list once and for all ?

2002-02-12 Thread Teggy P Veerapen
Hello people, Well, I'm trying to figure out how to modify the perl @INC directory list so that perl is able to find all required modules. In fact my problem is that the @INC variable doesn't contain any of the directories where perl and its modules are installed and I would like to set this

Re: Reading Multiple lines

2002-02-12 Thread J. Raj Mohan
Hi Andrea, Thanks for your great help. The 2nd solution is working for me... Thanks a LOT. Raj. - Original Message - From: Andrea Holstein <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 4:40 PM Subject: Re: Reading Multiple lines > In article <057501c1b30

RE: Removal from list

2002-02-12 Thread James Lucero
Where is the FAQ? --- "McCollum, Frank" <[EMAIL PROTECTED]> wrote: > I am trying to also. They request that you try all > the options in FAQ, > which I have yet to read. So many emails, and so > little time. > > -Frank > > -Original Message- > From: James Lucero [mailto:[EMAIL PROTECT

RE: Window API: Changing window focus

2002-02-12 Thread Timothy Johnson
Do you have the Platform SDK from Microsoft? If not, I suggest you download it. You should be able to find what you're looking for in there. -Original Message- From: Ben Crane To: [EMAIL PROTECTED] Sent: 2/12/02 6:55 AM Subject: Window API: Changing window focus Hi List, Sorry about

RE: Removal from list

2002-02-12 Thread McCollum, Frank
I am trying to also. They request that you try all the options in FAQ, which I have yet to read. So many emails, and so little time. -Frank -Original Message- From: James Lucero [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:11 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTEC

Removal from list

2002-02-12 Thread James Lucero
Does anyone know how to get off of this list? I've sent e-mail to two different places as instructed ([EMAIL PROTECTED];[EMAIL PROTECTED]). I need to unsubscribe [EMAIL PROTECTED] and/or [EMAIL PROTECTED] I like seeing the questions and answers, I just made the mistake of getting everyone e

Re: How do I test for a NULL string value

2002-02-12 Thread Randal L. Schwartz
> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> Do you mean "NULL" as in "empty string"? Randal> $string eq "" Randal> or Randal> ! length($string) Randal> will do. But if you mean something else by NULL, you'll need to be Randal> more specific. Although I guesse

Window API: Changing window focus

2002-02-12 Thread Ben Crane
Hi List, Sorry about this being a non-perl question... anyone know what API command changes the window focus? I have a VB program that needs to refocus and maximise a window...I can't seem to find any API commands that let me do this... thanx, Ben _

clearing string (newbie) - resuming

2002-02-12 Thread Dittrich G . Michael
Hi all! i had a lot of feetback on my last post with really good stuff (I used for other purposes - please don't mind :), but there is still the one question: clear the string! - how? the most solutions worked only for one digit in the end or tryed to filter the first pattern after the [:spac

RE: Parsing a .csv file

2002-02-12 Thread Richard Smith
You might try splitting on quotes first., e.g. my @quotes_array = spilt /"/, $input; my @final_array; # Array members with odd idices will be quoted strings, split others on comma. for ( my $index = 0; $index < @quotes; $index++ ) { if ( $ind

Re: How do I test for a NULL string value

2002-02-12 Thread Randal L. Schwartz
> "Todd" == Todd Kennedy <[EMAIL PROTECTED]> writes: Todd> Hello, I am trying to test for a NULL value in a string variable Todd> but am unable to figure it out. I see that a RE of s/^\s// would Todd> test for a space at the beginning of a variable or line, but I Todd> can't seem to figure ou

How do I test for a NULL string value

2002-02-12 Thread Kennedy, Todd
Hello, I am trying to test for a NULL value in a string variable but am unable to figure it out. I see that a RE of s/^\s// would test for a space at the beginning of a variable or line, but I can't seem to figure out how to test for a NULL value. Can anyone help me out? Todd Kennedy Unix Admi

RE: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread Bob Showalter
> -Original Message- > From: david wright [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 11, 2002 9:02 PM > To: [EMAIL PROTECTED] > Subject: AARGHHH,. chdir(yes - no) > > > Man, i am going crazy on this,... this is actually within a > package but > that doesn't matter in this

RAS checking

2002-02-12 Thread Veeraraju_Mareddi
Dear All, Is there any way to detect whether the RAS server is working properly or not .Can we write any script to dial and test the Conectivity at some time intervals Please suggest me if anyone of you worked/working on this concept Please suggest some modules about this with Regards Raju ***

Re: Reading Multiple lines

2002-02-12 Thread Andrea Holstein
In article <057501c1b305$6a15b360$[EMAIL PROTECTED]> wrote "J. Raj Mohan" <[EMAIL PROTECTED]>: > Hi Andrea, > > Thanks for responding my mail. > > Actually I want to read(store it into a string) like; Begin keyword is "and the End > keyword is ">". By using these two delimiters I like/want to r

Re: Why won't while die? + Accessing the filename of a opened file

2002-02-12 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "Michael Fowler" <[EMAIL PROTECTED]>: >> ... >> > if(open(FILE1, "/Users/tor/Perl/test")) { >> >> On a *nix system I would never give a file or a script the name test. test is a >system command on >> unix and >> if the

Re: getting a block of text from file

2002-02-12 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "Chris Zampese" <[EMAIL PROTECTED]>: > Hi All, > I have a file that contains the contents of an email. Its format is shown below... > > (Lots of lines of random stuff) > Content-Transfer-Encoding: quoted-printable > > The message of the email is here the

getting a block of text from file

2002-02-12 Thread Chris Zampese
Hi All, I have a file that contains the contents of an email. Its format is shown below... (Lots of lines of random stuff) Content-Transfer-Encoding: quoted-printable The message of the email is here then it is followed by --=_NextPart_000_0118_01C1B358.DE107900 (lots more lines of stuff

Re: how do I make a input from STDIN to be silent??

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 12:15:17 +1100, Ivan Teliatnikov <[EMAIL PROTECTED]> wrote: > I want to read a passwd string from the terminal but without > displaying it back to the screen. perldoc -q password #!/usr/bin/perl -w use strict; use Term::ReadKey; print "Password: "; ReadMode('noecho'); chom

Re: AARGHHH,..... chdir(yes - no)

2002-02-12 Thread david wright
Sean wrote: "I've been trying to wrap my brain around this for a little while, and I don't think I've been completely successful, but here's my stab at what's wrong. You stated, I think, that line 27 worked and line 29 did not. Line 27 was properly escaped... > 27 #chdir("/Volu

  1   2   >