Hidden fields and Perl

2002-04-29 Thread ray
he data song_admin.cgi?name=&file=&artists=&item=1&delete=delete What I would expect as a return value is song_admin.cgi?name=Test&file=Test.txt&artists=teste&item=1&delete=delete this way it still reads from the same file. Let me know thanks.. Ray #writ

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-14 Thread Ray
e > $ref->{RejectRecord}[$i-1]{Reason}\n"; > > > > }- Hide quoted text - > > - Show quoted text - Yes... This is exactly what I would like to do. Thanks so much Chas! Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-14 Thread Ray
identifier ("LarryBoy") and the other is the Reject Code ("1234"). I am interested in iterating through the Customer Code. Thanks again for your help! Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-14 Thread Ray
printf qq(customer %-9.9s had error %d "%s"\n), > $rec->{Customer_New}{Code}, > $rec->{Code}, > $rec->{Reason}} > Exactly! Thanks Again. Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

GetOptions with dynamic set of options

2007-07-05 Thread Ray
Hi, I'm trying to build a generic Parsing Arguments functions that would be driven by an array of possible options that is defined by a specific program. I'm trying to use this feature of GetOptions: my %h = (); GetOptions (\%h, 'length=i'); # will store in $h{length} But what I would like

Re: GetOptions with dynamic set of options

2007-07-05 Thread Ray
uot; option? Would I be able to refer to each option such as $target_hash_ref{showlog}, or $target_hash_ref{strategy} ? Thanks alot for your help Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Perl equivalent of "Include"

2007-07-06 Thread Ray
sing the module file. Can someone point me to some examples of documentation on how I can do this (w/out having to specifically "export" each variable for subroutine)? Thanks Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Which DBD -Module do I need??

2001-06-08 Thread Ray Barker
Unless you want to use DBD in particular, since you're using an MS database, you might be happier with using: WIN32::OBDC I've used it and am pretty happy with it -Original Message- From: Paul Counsell <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: June 08, 2001 2:53

Re: counting problem

2001-06-08 Thread Ray Barker
-Original Message- From: Raven <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: June 08, 2001 3:23 AM Subject: counting problem >Hi > >Can anyone help me with a script that I have made? >It is a script who are going to add users to a passwd file. > >It works fine when

Re: Can't seem to get my match to work...

2001-07-13 Thread Ray Barker
you want that to be: $strip =~ /\w+/; #?? see the ~ thingie -Original Message- I'm running perl version 5.005_03 and I have a simple match and capture that I can't seem to get to work. while () { $strip = /\w+/; print "$strip \n"; } This just returns to me

Re: DBI question (again)

2001-08-02 Thread Ray Barker
>Extracted from the perl cookbook > >use DBI; > >$dbh = DBI->connect('DBI:driver:database', 'username', 'auth', >{ RaiseError => 1, AutoCommit => 1}); >$dbh->do($SQL); >$sth = $dbh->prepare($SQL); >$sth->execute(); >while (@row = $sth->fetchrow_array) { ># ... >} >$sth->finish();

Re: problems with a for-loop

2001-08-10 Thread Ray Barker
Hi Birgit-- I am probably missing something, but the thing I see is that you have used the my keyword inside your loop in this statement: > my @db_cols = @cols; # now we set the field names to those of db2 which we > my ($status2, @hits2) = &query('view'); # sub query does the actual search tha

Re: Games in PERL ?????

2001-08-14 Thread Kenneth Ray
yes, you can use PERL to program Games. No it's not the best thing to use for doing so, and after reading the documentation, I think the exerpt below explains alot to the issue of what perl is and what its capabilities are. In my humble opnion knowing what i know of OO programs and C and sh and KS

Re: PERL IS NOT A HIGH LEVEL LANGUAGE

2001-08-17 Thread Ray Barker
Hi all-- Please add my 32 years of programming experience to the perl is a high level language side. Good thing "will" didn't suggest that some python experience would be adequate for entrance to the class! I don't think that it will be profitable for you to argue with a professor on this subje

Re: perl GUI

2001-08-21 Thread Ray Barker
You can use glade to build your Gnome interface: http://glade.gnome.org/ and then use glade-perl to link to perl http://www.glade.perl.connectfree.co.uk/index.html I've used glade with C and it works pretty well. Trying it with perl is on my things to do list. also look at wxWindows -Origin

Re: Accessing an oracle database with a DBI

2001-08-29 Thread Ray Barker
You could use ODBC if you have the ODBC driver installed for oracle (I'm just assuming that oracle has an ODBC driver.) You would need the Win32::ODBC module, which you could get Win32::ODBC using ppm from the ActiveState site. *I* think a better way is to use DBI. You'll need DBD::Oracle and D

Re: How can i use Sybase with Perl ??

2001-09-11 Thread Ray Barker
http://dbi.perl.org/ -Original Message- From: Mcgregory Pinto <[EMAIL PROTECTED]> To: Perl Beginners <[EMAIL PROTECTED]> Date: September 11, 2001 3:04 AM Subject: How can i use Sybase with Perl ?? Hello ... How can i use sysbase with perl ?? Any information, sites, tutorials, etc ... ar

Environment variable question

2001-05-04 Thread Hitesh Ray
> Hi All, I am required to modify an Environment variable from one value to another using perl script. I can access the env. variables in the perl script using ENV. How can i modify so that when I exit my perl script -- the env. variable has new value. Thanks in advance. Regards, Hitesh

Re: Environment variable question

2001-05-04 Thread Hitesh Ray
rn the new directory name to Testify as it is required there for some other operation. Testify plays with variables and so I was trying to modify the variable or create a new one that can be used by testify once the perl script execution is completed. Thanks, Hitesh Paul wrote: > --- Hitesh Ray <

FW:

2001-05-22 Thread Ray . Nichols
meout value on the second line seems to force a 35 second delay > before processing the next line, which does not help. I've tried the > timeout value on the CMD line but I get a syntax error. Any ideas? > > Ray Nichols > ZC Sterling Insurance Agency, inc. > (949) 206-6447 > [EMAIL PROTECTED] >

Re: Tables help

2001-06-06 Thread Ray Barker
-Original Message- From: Diego Riaño <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: June 06, 2001 9:15 PM Subject: Tables help >Hi everybody > >I am working on some kind of files and i have to change the format and >get a table. > >thes files had the following form:

Re: executing an application within a perl script

2001-10-20 Thread Ray Barker
use system or exec system ('c:\"Program Files"\Accessories\wordpad.exe'); perldoc -f system perldoc -f exec note that system doesn't work as expected on windows apps. it returns immediately after the app starts OK. -Original Message- From: phumes1 <[EMAIL PROTECTED]> To: [EMAIL PROTECT

Modules

2001-11-16 Thread Ray Murphy
e - conserve memory because as soon as you've left the routine the module goes bye bye (guessing)?? But surely the library would have to compile everytime the subroutine would be called and therefore slow the program down somewhat (again, guessing). Thanks for your help. Ray Murphy. ___

Is A File Encrypted?

2001-12-06 Thread Ray Murphy
ext file via 'if (-T $file)'. Is there any other (better) way of testing to see if a file is encrypted? I don't want to call the decryption routines if the file is not encrypted. Cheers Ray. __ Do You Yahoo!? Send your

Calculate the distance between 2 coordinates

2002-01-10 Thread Ray Seals
I've been looking for either a perl script or module to help me calculate the distance between 2 coordinates. Does anyone have any ideas or scripts? Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Calculate the distance between 2 coordinates

2002-01-10 Thread Ray Seals
I searched google and found several examples. Should have done that first but didn't think about it before I posted. Sorry for the wasted bandwidth. Ray -Original Message- From: Mel Matsuoka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 6:03 PM To: [EMAIL PROT

Attentipn Please!! Need A Perl script to read the UIDs from two text files having the details in the format as given in the file(lLDIF format)

2009-08-17 Thread Jyotishmaan Ray
Dear All, I have to read the uid from this file for each student entry, which is itself a LDIF file, and extract it in another file, in a serial order. Can you provide me the simplest way to do it. Thanks, Jyotishmaan Ray Moderator Of Spirituality-Paradise Group http://yahoogroups.com

Perl Script Needed Urgently.!!

2008-08-19 Thread Jyotishmaan Ray
Dear All, I am a new bie in perl. I have to generate LDIF files after reading a file containing a list of userids of a new admitted batch of a university along with their passwords, uidNUmber And gidNumber. Say the new batch contains 400 students, and the uidNumber starts from the number 2631 onw

Script neeed for creating home directories for each student!!

2008-08-19 Thread Jyotishmaan Ray
ct: Re: Perl Script Needed Urgently.!! To: beginners@perl.org Date: Tuesday, August 19, 2008, 3:18 PM Hi Jyotishmaan Ray U can do the task in the following way but there may be some other good and compact way. The source file is the file where uid and user password are written but one thing in the s

Re: Script neeed for creating home directories for each student!!

2008-08-19 Thread Jyotishmaan Ray
H,"/home/anadhikary/perl/sourcefile"); while() {     ($a,$b)=split(/\s+/,$_);      my $homedir = "/mnt/btech/$a";     `mkdir "$homedir"; chmod 700 "$homedir";` if(! -e $homedir);  }   close(FH);   On Tue, Aug 19, 2008 at 6:29 PM, Jyotishmaan Ray <[EMAIL PR

create the home directories of 424 students in a server machine

2008-08-19 Thread Jyotishmaan Ray
Dear All, I am a new bie in perl. I have to create the home directories of 424 students in a server machine. The path of the home directory would be :- /mnt/btech/formatted-rollno. where formatted-rollno ="s08-1-5-097" And the input file contains all the rollnos of 424 students. A sampl

What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
l/$a" ); } close(PWD); ~   Thanks, Jyotishmaan Ray Moderator Of Paradise Groups http://yahoogroups.com/group/Spirituality-Paradise Are You Spiritually Aware  !!! Are You Enjoying Yourself  !!!  See What All You Had Been Missing Please Join Immediately By Sending A Blank Mail @  [EMAIL PROTECTED]    

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote: >> Dear All, >> >> I have a input file containing all the rolnos of 400 studenst. I >> have written a small perl script to create their home directories >> in the cluster server. >> >> everything worked f

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
ript ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Wednesday, August 20, 2008, 7:01 PM On Wed, 2008-08-20 at 06:11 -0700, Jyotishmaan Ray wrote: > Yes, a user uid has already been created in aLDAP server which does centralised authentication. > > And these home directories were

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
created a user by importing a ldif as shown  below: Plz go through this  file. However this file  is located at the LDAP server and the homedirectories are to created in the cluster server. dn: uid=s08-1-5-097,ou=student,dc=nits,dc=ac,dc=in uid: s08-1-5-097 cn:  s08-1-5-097 objectClass: account

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
ers@perl.org Date: Wednesday, August 20, 2008, 6:00 PM On Aug 20, 2008, at 7:20 AM, Mr. Shawn H. Corey wrote: > On Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote: >> Dear All, >> >> I have a input file containing all the rolnos of 400 studenst. I >> have writt

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
vironment and other stuff to authenticate with. Hope this helps... On Aug 20, 2008, at 2:10 PM, Jyotishmaan Ray wrote: All the users have been created through LIDF files format being imported to the central LDAP server in the setup. The hopme directories are being created for the students to work on

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
Give some pointers as such to sort out this problem in my cluster servers (fedora-linux) ?   --- On Thu, 8/21/08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: From: Mr. Shawn H. Corey <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: "Perry Smith" <[EMAIL PROTECTED]> Cc: [

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
.1) In this case the numeric value of the id is 503 and the numeric value of the group is 20.  Find your values for one of your users.  Then (as root) try this: cd /tmptouch foochown 503 foochgrp 20 fools -l foo (the 20 and 503 will be replaced with the numbers you have).  See if the ls shows th

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
group.1) In this case the numeric value of the id is 503 and the numeric value of the group is 20.  Find your values for one of your users.  Then (as root) try this: cd /tmptouch foochown 503 foochgrp 20 fools -l foo (the 20 and 503 will be replaced with the numbers you have).  See if the ls sh

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
No it does nt work out as shown below:- [EMAIL PROTECTED] perl]# chown s08-1-5-095:s08-1-5-095 /root/perl/s08-1-5-095 chown: `s08-1-5-095:s08-1-5-095': invalid group [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 /root/perl/s08-1-5-095 [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
you so much everybody Three cheers!!     --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Thursday, August 21, 2008, 8:05 PM Jyotishmaan

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
se it is not showing up?? Any pointers ??    --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Thursday, August 21, 2008, 8:05 PM J

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
te: Thursday, August 21, 2008, 9:08 PM Take some SYS Admin classes. Once you have completed the training, your questions should have answers. Wolf Jyotishmaan Ray <[EMAIL PROTECTED]> wrote: > > Dear Wolf > > It still has not solved my problem completely, > > The out

Re: What is wrong with this script ??

2008-08-22 Thread Jyotishmaan Ray
Dear All, Thanks a lot for providing me the pointers. Now i could create the homedirectories of 420 students with explicit chown and chgrp privilgeses. The thing was that the groups didnt exist so was not accepted in the chown command. Now that i have solved my problem, Thanks a zillion!!!

Re:Printing to file

2004-10-26 Thread lashley ray
I like Gunnar, professional, to the point. He answers alot of questions too. 'The silent majority' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Errors with dynamic extensions loading when running from jsp

2006-07-06 Thread Ray Gebbie
ATE_TIME = `date +\"%y%m%d%H%M%S\"`; chomp $DATE_TIME; use Net::FTP; I am assumming that I need to set something in the environment, but I don't know what. I have not found any useful info in the documentation or on this email list. If anyone can point me to more info, or even give

RE: Errors with dynamic extensions loading when running from jsp

2006-07-06 Thread Ray Gebbie
Yes -- the module directories are readable by all. Ray Gebbie Federated Systems Group San Francisco, CA 94102 415-422-1662 "Timothy Jo

Re: Errors with dynamic extensions loading when running from jsp

2006-07-07 Thread Ray Gebbie
o not know enough about this part of perl to even know where to look. Thanks. Ray Gebbie Federated Systems Group San Francisco, CA 94102 415-422-1662 "Mumia W."

Problem setting port speeds with POSIX

2002-03-11 Thread Ray Seals
I'm trying to change the inbound and outbound port speeds of a serial port using POSIX. I'm trying to write a small perl script to drive an LCD display. The reason I open it as DisplayIO is because I need to print to standard IO. At the moment all I'm trying to do is change the port speed bu

RE: message to cell phone

2002-03-11 Thread Ray Seals
Most cell phones will allow you to send email to them. That's how we do it. We just use sendmail from the perl script. For example, Cingular cellular is area code phone number @ my.cingular.com. So we send e-mail to [EMAIL PROTECTED] Ray -Original Message- From: Joyce Harris [m

Iterate through a hashref using XML::Simple (real post)

2007-06-14 Thread olson . ray
ow: Notice that I've hardcode the first reference to Rejected Records by using [0]. Well I need to know how of these there are in the hashref $ref so I can iterate through. Any help would be much appreciated. Thanks in advance. Ray XML File foo.xml FAILURE: Attempt to add Customer

Iterate through a hashref using XML::Simple

2007-06-14 Thread olson . ray
Hi, I'm struggling with the use of the XML::Simple package and was hoping to get some help. I'm kind of new to perl, especially dealing with hash references. I would like to be able to iterate through a hashref that is built using XMLin. Here is the code: -- To unsubscribe, e-mail: [EMAIL PROTEC

Use a hash or multi dimensional array?

2003-01-02 Thread Ray Seals
pop. Then push the new value and 2 letter to the list. The only reason I keep looking at a hash is because I need to sort the list when I do my reporting. I thought about taking the cheesy way out and use a case/switch setup, but I won't always know what the 2 letter codes will be. -

Out of Memory Working With Large Files

2003-01-19 Thread Nelson Ray
Just as a little background, I am working on a BioInformatics program that runs on large (about 300 meg) text files. I am using a filehandle to open and load it into an array. Then I use the join command to read the array into a scalar variable in order to be in a workable form for my computation

Count Function?

2003-06-27 Thread Nelson Ray
Does anyone know of any sort of a function or method in perl that returns the number of times a search string exists in a scalar. Say, how many "a's" are there in this sentence? I am able to write it myself, but I was wondering if Perl had an inherent function for cleaner operation. I tried look

Regular Expressions and LWP

2003-07-16 Thread Ray Seals
e->is_error; my $content = $response->content(); @location = $content =~ m{MapViewMode=Summary">([^<]*)}g; print "@location[0]\n"; %<--->% Here is the HTML that $content contains: WhatsUp Gold - Testing Box ... < LOTS OF STUFF CUT OUT > ... test devic

parsing PDF documents

2003-07-23 Thread Ray Seals
lines of text. Ray -- --- Is the Internet down? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl CGI Security

2001-04-16 Thread Ray Calkins 100660207
t it's a little over my head still. Any other recommendations? Thanks in advance, Ray Calkins [EMAIL PROTECTED] [EMAIL PROTECTED] "My opinions are my own, and do not reflect those of my employer."

RE: Perl CGI Security

2001-04-16 Thread Ray Calkins 100660207
> What type CGI are you going to be writing? Lots of different stuff I want to do, but I thought I'd start with a chat or BBS-like script, as there seem to be a few availible to work from. Ray Calkins [EMAIL PROTECTED] [EMAIL PROTECTED] "My opinions are my own, and d

Perl Man Pages

2001-04-19 Thread Ray Calkins 100660207
quot;, etc, but is there something similar for Windows versions of Perl? Ray Calkins [EMAIL PROTECTED] [EMAIL PROTECTED] "My opinions are my own, and do not reflect those of my employer."