beginners@perl.org

2001-06-12 Thread [EMAIL PROTECTED]
unsubscribe

Need Perl/CGI/DBI/mysql Examples

2001-06-17 Thread [EMAIL PROTECTED]
ot; if you will. ;) I swear I wont be stealing anyones code for my own, all I want is just a "road map" for my own educational purposes. If anyone wouldn`t mind sharing or could point me in the right direction, it would be *immensely* appreciated! Thanks in advance! -- Tim W. [EMAIL PROTECTED]

Problem running script on WinNT4 machines. - Win32::Netadmin

2001-08-15 Thread [EMAIL PROTECTED]
;Administrators", \@users); for (my $i=0; $i<@users; $i++){ $console->Write(" $users[$i]\n"); } $console->Write("\n\n"); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: emptying an scalar variable

2001-08-17 Thread [EMAIL PROTECTED]
; > > empy $line; > } > > Any help welcome? > > -- > *** > > PEDRO a. RECHE gallardo, pHDTL: 617 632 3824 > Scientist, Mol.Immnunol.Foundation, FX: 617 632 3351 > Dana-Farber Cancer Institute,

Re: emptying an scalar variable

2001-08-17 Thread [EMAIL PROTECTED]
; > > empy $line; > } > > Any help welcome? > > -- > *** > > PEDRO a. RECHE gallardo, pHDTL: 617 632 3824 > Scientist, Mol.Immnunol.Foundation, FX: 617 632 3351 > Dana-Farber Cancer Institute,

Re: Would like to generate PDF output from text

2001-08-17 Thread [EMAIL PROTECTED]
eState Perl (I believe it's 5.6) on WinNT. > > Does anyone have a pointer to the correct module? > > Peter > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Premature End of Script Headers

2001-08-17 Thread [EMAIL PROTECTED]
d of Script > Headers" and "Client Sent Malformed Host Header". Can someone please tell > me what these errors mean and how I can fix them? Thus far I have been > unable to find any useful information on Internet. > > Thanks! > > JMM > > >

DBD and DBI::Pg

2001-04-15 Thread [EMAIL PROTECTED]
Our site (www.dagl.net) has recently been given the task of beta testing a new statistics program for our Quake 3 game servers... This new program is called "GeigerCounter - RC5", in case any of you have experience with it... However, I am only a newbie at PostgreSQL and PHP, so I don't know wha

AW: Pack trouble

2001-04-29 Thread [EMAIL PROTECTED]
ehy..is this the loveletter virus attached ?? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Slaven Rezic Gesendet: Sonntag, 29. April 2001 03:46 An: Hans Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: Pack trouble Hans <[EM

Re: gzip or Compress::Zlib

2001-05-09 Thread [EMAIL PROTECTED]
ou do that with all your options, see how they fit into what you wish to do.. benchmark if you need to, and form your own educated opinion to what way is 'better' for your project. Cheers, Kevin On Wed, May 09, 2001 at 11:38:00AM -0500, Kailash Subramanian ([EMAIL PROTECTED]) spew-ed f

regex question

2001-10-29 Thread [EMAIL PROTECTED]
;\', \'" . $nrcpts . "\', \'" . $relay . "\', \'" . '' . "\')"; if (0 < $DEBUG) { print "INFO: Line " . __LINE__ . " " . $query; } =======

beginners join function question

2001-10-30 Thread [EMAIL PROTECTED]
= any help would be greatly appreciated. thanks -- - josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk Open Systems =}----ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To un

what is @$data

2001-11-04 Thread [EMAIL PROTECTED]
B9F3 21C4 300C C25E~. .~ Tk Open Systems =}ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

protecting code

2001-11-12 Thread [EMAIL PROTECTED]
). Although I can only see problems going down this road. The best solution is to keep the application on out servers. Any pointers would be greatly appreciated. regards Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem getting scalars out of array

2001-11-15 Thread [EMAIL PROTECTED]
- josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk Open Systems =}----ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hash question

2001-11-25 Thread [EMAIL PROTECTED]
d{time} ? -- - josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk Open Systems =}ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: hash question- solved

2001-11-25 Thread [EMAIL PROTECTED]
On Sun, 25 Nov 2001, [EMAIL PROTECTED] wrote: > Date: Sun, 25 Nov 2001 15:18:19 +0200 (IST) > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: hash question > > hi all, > can someone point me in the right direction. i do

what is a structure

2001-12-03 Thread [EMAIL PROTECTED]
---ooO--U--Ooo----{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

structures and references

2001-12-04 Thread [EMAIL PROTECTED]
--ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

OO perl tutorials

2001-12-04 Thread [EMAIL PROTECTED]
stems =}ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: acronym of qw

2001-12-05 Thread [EMAIL PROTECTED]
On Wed, 5 Dec 2001, nafiseh saberi wrote: > Date: Wed, 5 Dec 2001 12:00:17 +0330 > From: nafiseh saberi <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: acronym of qw > > hi dear team... > I wish all of you be healthy. > > do you know ...what is the acr

Re: acronym of qw

2001-12-05 Thread [EMAIL PROTECTED]
On Wed, 5 Dec 2001, nafiseh saberi wrote: > Date: Wed, 5 Dec 2001 12:00:17 +0330 > From: nafiseh saberi <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: acronym of qw > > hi dear team... > I wish all of you be healthy. > > do you know ...what is the acr

Re: Time since midnight.

2001-12-05 Thread [EMAIL PROTECTED]
On Wed, 5 Dec 2001, Tirthankar C. Patnaik wrote: > Date: Wed, 5 Dec 2001 14:18:35 +0530 (IST) > From: Tirthankar C. Patnaik <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Time since midnight. > > > > I have a set of timestamps, which are seconds since midnig

DBI hashref of a sum (maybe OT)

2001-12-23 Thread [EMAIL PROTECTED]
A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E~. .~ Tk Open Systems =}--------ooO--U--Ooo{= - [EMAIL PROTECTED] - tel: +972.58.520.636, http://www.tkos.co.il -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

sub to jump to begining of month

2001-12-26 Thread [EMAIL PROTECTED]
f correctly at $TestingTime = 999291600 (Sep 1 00:00:00 2001) but when i try to jump to the 1001887200 (Oct 1 00:00:00 2001). $TestingTime= 1001883600 (Sep 30 23:00:00 2001) can someone please show me where i went wrong? -- - josh N8MSO 20A8 2FC6 9099 D215 78F4 D005 B9F3 21C4 300C C25E

Re: get the matching regex pattern

2008-03-20 Thread [EMAIL PROTECTED]
On Mar 20, 6:01 am, [EMAIL PROTECTED] (Ram Prasad) wrote: > I have a somewhat strange requirement > I want to find if a regex matched what exactly matched > > to reproduce this > > -- > my @x; > $x[0] = 'chi+ld*'; > $x[1] = '\sjoke

Re: copy array

2008-03-25 Thread [EMAIL PROTECTED]
On Mar 25, 8:50 am, [EMAIL PROTECTED] (Sharan Basappa) wrote: > Hi, > > Is there a way I can copy only part of an array into another array. > For example, I want to copy only first 8 elements of source array > into destination array. > > Regards Hi, You can use the sp

Writing into an MS-Access database

2008-04-08 Thread [EMAIL PROTECTED]
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: FW: How to install Date::Manip on cygwin perl?

2008-04-08 Thread [EMAIL PROTECTED]
uot;$CPAN::Config->{tar} xvf '$file'"; $CPAN::Frontend->myprint(qq{Using Tar:$system:\n}); if (system($system)==0) { $CPAN::Frontend->myprint(qq{Untarred $file successfully \n}); My CPAN version is v1.7602 and Perl version is 5.8.8. On Mar 2

Re: Writing into an MS-Access database

2008-04-09 Thread [EMAIL PROTECTED]
On Apr 9, 3:21 am, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > I am struck on how to write data into a MS-Access data base. > > > I know how to retrieve data. I am using Win32::ODBC -- fetchRow to > &g

a port com sniffer (a like one)

2008-04-09 Thread [EMAIL PROTECTED]
resse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

Trying to splice....

2008-04-10 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] into the middle of @players without removing any elements from @players. so i've done the following... #!/usr/bin/perl -w # extracting elements using splice @players = ("ryno", "fukudome", "grace", "banks", "santo",

Re: Trying to splice....

2008-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 9:03 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] into the middle of @players without removing any elements > > from @players. > > > so i've done the following... > > > #!/usr/bin/perl -w &g

Writing hexa in ascii

2008-04-11 Thread [EMAIL PROTECTED]
d this function) Have you any idea ?? Thanks Gilles Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

Unable to finally commit the changes made to some lines in a file using Tie::file

2008-04-27 Thread [EMAIL PROTECTED]
Playlist ID61636 Playlist Persistent ID9C1DDB98AD8E3878 All Items Playlist Items Track ID16874 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Meaning of [EMAIL PROTECTED]

2008-06-12 Thread [EMAIL PROTECTED]
Hi there, I am stuck with something here. What does the following piece of code mean? my @temp1; my @temp2; $cnt=0; $temp2[$cnt] = [EMAIL PROTECTED]; What is the kind of data stored in $tempFieldNames[$information] ? Please help. Sundeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: problem with printing

2008-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 5:10 am, [EMAIL PROTECTED] (Dakin999) wrote: > Hi, > > I have following code which works ok. It does following: > > 1. reads data from a input file > 2. puts the data into seperate variables in a array > 3. reads from this array and prints out to another file > &

Re: Writing output to a file

2008-06-19 Thread [EMAIL PROTECTED]
On Jun 18, 7:12 pm, [EMAIL PROTECTED] (Dakin999) wrote: > Hi, I am trying to write the script myself and now stuck at some > thiong that I am pretty sure have been done by others. Any help will > be significant. > > Ok, I have created an array and now I want to read from this array

clock in perl

2008-08-12 Thread [EMAIL PROTECTED]
can any body tell me how to make clock in perl/mason -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Perl equivalent of "sed -f" or "awk -f"

2008-09-02 Thread [EMAIL PROTECTED]
t inline editing directly. In Perl, what would be the way to apply a series of multiple inline edits in this form to an inputfile? commandfile: s/searchterm/replaceterm/ s/searchterm2/replaceterm2/ s/searchterm3/replaceterm3/ etc... Thanks in advance. -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: Perl equivalent of "sed -f" or "awk -f"

2008-09-02 Thread [EMAIL PROTECTED]
On Sep 2, 10:49 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > [EMAIL PROTECTED] wrote: > > I'd like to apply a series of inline edits to a file in Perl. > > > With sed, I could use "sed -f commandfile inputfile" or in awk, "awk - > > f commandf

csv multi-line to single-line

2008-09-24 Thread [EMAIL PROTECTED]
t;,"item2","body one","body two","body three" "10","item2","body one","body two","body three" How do I use perl to convert the above to the following? I'm a novice perl user. "apple three","body one","body two","body three" "apple three","body one","body two","body three" "apple three","body one","body two","body three" "orange three","body one","body two","body three" "orange three","body one","body two","body three" "orange three","body one","body two","body three" "orange three","body one","body two","body three" "orange three","body one","body two","body three" Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Accessing a variable from one script to another

2008-09-30 Thread [EMAIL PROTECTED]
there any way I can get its value? Please help me if this is possible. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Cache::FastMmap

2008-10-06 Thread [EMAIL PROTECTED]
checked cache::fastmmap is installed thanks in advance regards, saraubh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

data from file

2008-10-06 Thread [EMAIL PROTECTED]
Hi, I have large file in following format: ID | Time | IP | Code Now I want to write script that will cluster data by IP addr. and count total number of IDs for corresponding IP. I am new to perl. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: data from file

2008-10-07 Thread [EMAIL PROTECTED]
On Oct 6, 11:26 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > > Message du 06/10/08 17:03 > > De : "[EMAIL PROTECTED]" > > A : [EMAIL PROTECTED] > > Copie à : > > Objet : data from file > > > Hi, > > > I have large file in following format: &g

best way to search in a file

2008-10-07 Thread [EMAIL PROTECTED]
not know how to convert it to a script. perl -lane 'print $F[2] if /searchterm/' input.txt Any help would be much appreciated. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

efficient way to write code

2008-10-08 Thread [EMAIL PROTECTED]
file in hash array) Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

read file in hash array

2008-10-08 Thread [EMAIL PROTECTED]
I want to ready file in Hash Array. I have file in following format: ID | Time | IP | Code open(INFO, $file); @lines = ; Instead of this I want to use Hash Array. May be just ID and IP fileds. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: data from file

2008-10-08 Thread [EMAIL PROTECTED]
On Oct 6, 7:11 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi, > > I have large file in following format: > > ID | Time | IP | Code > > Now I want to write script that will cluster data by IP addr. and > count total number of IDs for corresponding IP. > > I am

Using a variable in a =~ match??

2008-10-21 Thread [EMAIL PROTECTED]
31 print "$_\n"; 32 } 33 } 34 } 35 } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Using a variable in a =~ match??

2008-10-22 Thread [EMAIL PROTECTED]
On Oct 21, 10:57 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > [EMAIL PROTECTED] wrote: > > Hi all, > > Hello, > > > Serious noob here (one week into llama 5th ed.). > > > I'm trying to write a script to pull a specific file from a directory > > and

perl and GPG module

2008-10-24 Thread [EMAIL PROTECTED]
Hello, Week two noob here. I am writing a script to download encrypted files using ftp then after they're downloaded decrypt them. I can't seem to get the GPG decrypt module to work though. The script does work when I use "system" to call another script using gpg directly. Here is the script. I w

LWP::Simple

2008-10-28 Thread [EMAIL PROTECTED]
quot;$Domain/$file.html"); print "Making $file.html\n"; exit; HERE is the ERROR: ./sitesucker.pl Use of uninitialized value in pattern match (m//) at ./sitesucker.pl line 19. Use of uninitialized value in pattern match (m//) at ./sitesucker.pl line 19. Making mypcbusa.com.html Any help will be greatly appreciated. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

out of memory

2008-10-31 Thread [EMAIL PROTECTED]
\n"; while (<$INFO>) { (undef, undef, undef, $time, $cli_ip, $ser_ip, undef, $id, undef) = split('\|'); push @{$time_table{"$cli_ip|$id"}}, $time; } close $INFO; In above code $file is very big in size(in Gbs); so I am getting out of memory !

Connecting MS SQL from linux

2008-11-08 Thread [EMAIL PROTECTED]
Hi! I'm using perl to connect to mysql, but now i need it to connect to MS SQL server and after google search i still don't understand the best way to do it. I need some tips to solve this issue, please people. Thanks, AV -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

search and replace

2008-11-12 Thread [EMAIL PROTECTED]
mp ($output); print "enter a search pattern:\n"; $search = ; chomp ($search); print "enter a replacement string:\n"; $replace = ; 's/$search/$replace/g' $input >> $output; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: search and replace

2008-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 6:55 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > [EMAIL PROTECTED] wrote: > > Hi I am new to this group and to Perl. > > > I am having trouble with searching and replacing a pattern in a file > > and then > > copying to a new file.  I am trying to write an

Re: search and replace

2008-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 6:55 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > [EMAIL PROTECTED] wrote: > > Hi I am new to this group and to Perl. > > > I am having trouble with searching and replacing a pattern in a file > > and then > > copying to a new file.  I am trying to write an

Longest Prefix Match

2008-11-25 Thread [EMAIL PROTECTED]
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Returning value from system()

2004-03-03 Thread [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

include one script in another

2004-09-16 Thread [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: include one script in another

2004-09-16 Thread [EMAIL PROTECTED]
Thanks a mil. I will take a look. Quoting Chris Devers <[EMAIL PROTECTED]>: > On Thu, 16 Sep 2004, [EMAIL PROTECTED] wrote: > > > Please help, I need to include one perl script in another. > > Use `require` or `use`. > > Normally I'd point you to perldoc.

module issues

2004-09-16 Thread [EMAIL PROTECTED]
tall? I am using Mandrake 10.0. Ciao -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: module issues

2004-09-16 Thread [EMAIL PROTECTED]
Thanks a million. I am now sorted. I installed the perl-devel rpm and did the CPAN install like you said I should. Cool bananas! Quoting Chris Devers <[EMAIL PROTECTED]>: > On Thu, 16 Sep 2004, [EMAIL PROTECTED] wrote: > > > The problem that I am having now is that I am tryin

time function

2004-09-20 Thread [EMAIL PROTECTED]
, how do I tell it one minute from now? Warmest regards -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Including one perl script in another

2005-02-23 Thread [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Setup of ActivePerl Modules HELP!

2005-05-10 Thread [EMAIL PROTECTED]
bscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: what's mistaken?

2006-12-26 Thread [EMAIL PROTECTED]
The line should read >>getopts(...)<< (i.e. with an "s"). -- K. Jantzen -Original Message- > Date: Wed, 27 Dec 2006 03:49:01 +0100 > Subject: what's mistaken? > From: Adriano Allora <[EMAIL PROTECTED]> > To: beginners@perl.org >

Re: PDF File

2007-05-25 Thread [EMAIL PROTECTED]
On May 24, 5:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On May 24, 2:22 pm, Alma <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I need to store the files > > What files? Where are the before you "store" them? > > >

Re: PDF File

2007-05-26 Thread [EMAIL PROTECTED]
On May 24, 2:22 pm, Alma <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to store the files in a directory '/home/user/cgi-bin/{today's > Date} > I am able to creata a folder on daily bases . > > I am struggling to create a subroutine that stores the uploa

Re: acccesing an hash

2007-05-28 Thread [EMAIL PROTECTED]
On May 28, 6:53 am, [EMAIL PROTECTED] (Jeevs) wrote: > my %hash = (jeevan=>'Ingale', Sarika =>'Bere'); > my @star = @hash{jeevan, Sarika}; > print @star; > > this prints ingale and bere but when i write Like Paul said, the hash is being treated as an arr

Re: PDF File

2007-05-28 Thread [EMAIL PROTECTED]
On May 26, 4:34 am, [EMAIL PROTECTED] (Alma) wrote: > On May 25, 10:16 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) > wrote: > > > > > On May 24, 5:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > On May 24, 2:22 pm, Alma <[EMAIL PROT

Re: Error with Html code

2007-05-29 Thread [EMAIL PROTECTED]
On May 29, 5:38 am, [EMAIL PROTECTED] (Alma) wrote: > > I am using apache2 & Gentoo linux. . i have a html upload.html > > > > > > Photo to Upload: > > Your Email Address: > > > > > > > but i am not able to view this html on m

Re: Passing arguments to subroutine

2007-05-31 Thread [EMAIL PROTECTED]
On May 31, 9:27 am, [EMAIL PROTECTED] (Alma) wrote: > sub delete_file() > { > my $self = shift; > my $file_path = @_; That sets $file_path to the number of arguments in the call to the method delete_file(). To set $file_path to the first of the arguments in the call t

Re: Arrow dereference operator question

2007-05-31 Thread [EMAIL PROTECTED]
On May 31, 7:55 am, [EMAIL PROTECTED] (David Unric) wrote: > Based on perlref documentation arrow operator between brackets subscripts > may be omitted so the following code is valid: > > @array = ( [1, 2], [3, 4] ); > $element = $array[0][0];# shorthand for $element

Re: Passing arguments to subroutine

2007-05-31 Thread [EMAIL PROTECTED]
On May 31, 9:27 am, [EMAIL PROTECTED] (Alma) wrote: > Hi All, > > I need to pass the result of prepare statement as an argument to the > subroutine. > > sub abc() > { > my $self= shift; > my($id,$title) = @_; > my $sth1= $databasehandle->p

Re: did I get greedy quantifiers wrong ?

2007-05-31 Thread [EMAIL PROTECTED]
On May 31, 11:02 am, [EMAIL PROTECTED] (Sharan Basappa) wrote: > I seem to be having some conceptual problem with greedy quantifiers .. > My understanding is that it matches as much as follows while still > allowing rest of the regex to match. Yes. That is correct. > $str = mississ

Re: Arrow dereference operator question

2007-05-31 Thread [EMAIL PROTECTED]
On May 31, 7:55 am, [EMAIL PROTECTED] (David Unric) wrote: > Based on perlref documentation arrow operator between brackets subscripts > may be omitted so the following code is valid: > > @array = ( [1, 2], [3, 4] ); > $element = $array[0][0];# shorthand for $element

Re: encode UTF8 -> MIME

2007-05-31 Thread [EMAIL PROTECTED]
On May 30, 5:58 pm, [EMAIL PROTECTED] (Chas Owens) wrote: > On 30 May 2007 06:07:55 -0700, cc96ai <[EMAIL PROTECTED]> wrote: > snip> I have a UTF8 input > > $value = "%23%C2%A9%C2%AE%C3%98%C2%A5%C2%BC%C3%A9%C3%8B > > %C3%B1%C3%A0%C3%A6%3F%23"; > > > t

Re: encode UTF8 -> MIME

2007-06-01 Thread [EMAIL PROTECTED]
On Jun 1, 1:07 am, [EMAIL PROTECTED] (Oryann9) wrote: > > Oddly, there's a uri_unescape_utf8 but no > > uri_unescape_utf8 provided > > by URI::Escape. > > > However combining URI::Escape::uri_unescape() and > > Encode::decode_utf8() > > in one stat

Re: Effective date grab

2007-06-01 Thread [EMAIL PROTECTED]
On Jun 1, 5:36 am, [EMAIL PROTECTED] (Mathew Snyder) wrote: > A while ago I had posted requesting help with a long block of code that would > do > all kinds of stuff dealing with the date. It turned out to not work despite > being technically, correct. Instead of getting help

Re: Error:Can't locate object method "prepare" via package "abc" at xyz.pm

2007-06-01 Thread [EMAIL PROTECTED]
On May 31, 2:17 pm, [EMAIL PROTECTED] (Alma) wrote: > Hi , > > Urgent help. [ snip - substantially the same thing as he posted a few days back ] Please, if there is something you find unclear about the answers you are given in a newsgroup or mailing list then follow-up with further

Re: CPAN and Windows

2007-06-01 Thread [EMAIL PROTECTED]
On Jun 1, 9:38 pm, [EMAIL PROTECTED] (Ebarras) wrote: > I am _Very_ new to perl, and programing in general, so keep that in > mind. I am trying to use some CPAN modules with ActivePerl, and I am > having a difficult time of it. Is there a tool or something to > integrate these modul

Understanding methods OO Perl

2007-06-04 Thread [EMAIL PROTECTED]
the method speak is found in Animal, perl invokes the method Animal::speak("Horse") and moves back to Horse for the sound method. What I'm having trouble understanding is how $class is passed the argument "Horse" when I don't explicitly pass Horse as a param

Re: Annoying HASH(0x...) in Output

2007-06-05 Thread [EMAIL PROTECTED]
do I get rid of the Annoying HASH(0x86ea69c) in my output? > > Here is the code to the object (Person.pm) > > #! /usr/bin/perl > > package Person; > > sub new { > my ($class) = @_; > my ($self) = { }; > bless $self, $class; > $self->{'_na

Re: Annoying HASH(0x...) in Output

2007-06-05 Thread [EMAIL PROTECTED]
On Jun 4, 4:34 pm, [EMAIL PROTECTED] (GMan) wrote: > I am trying to teach myself Perl Objects. > > I have a Person object with a name and a list of friends. > > Here is a test program that uses it. > > #! /usr/bin/perl > > use Person; > > $p = new Person; > &g

Re: Annoying HASH(0x...) in Output

2007-06-05 Thread [EMAIL PROTECTED]
On Jun 4, 4:34 pm, [EMAIL PROTECTED] (GMan) wrote: > I am trying to teach myself Perl Objects. > > I have a Person object with a name and a list of friends. > > Here is a test program that uses it. > > #! /usr/bin/perl > > use Person; > > $p = new Person; > &g

Re: Understanding methods OO Perl

2007-06-05 Thread [EMAIL PROTECTED]
On Jun 5, 1:17 am, [EMAIL PROTECTED] (Chas Owens) wrote: > On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > snip> Horse->speak; > snip > > What I'm having trouble understanding is how $class is passed the > > argument "Horse" when I don

Re: Mod_auth_pgsql

2007-06-06 Thread [EMAIL PROTECTED]
On Jun 6, 2:19 pm, [EMAIL PROTECTED] (Alma) wrote: [ a question ] I suggest anyone considering trying to help take a look first at the OP's posting history. http://groups.google.com/groups/profile?enc_user=YxbXgBQAAAD5iljsKET15HYh4y9gFsHUOPANdqfI6prRsqjc7uCt1A -- To unsubscribe, e

Perl directory listing program

2007-06-12 Thread [EMAIL PROTECTED]
ders: File Name | Size | Owner | Group (with no pipes) no parameters - show the files in the cwd The output needs to have the following header: File Name -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Perl directory listing program

2007-06-12 Thread [EMAIL PROTECTED]
On Jun 12, 5:26 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Looking for some help here you perl geniuses you : ) > > I need a program Sorry, I think you are in the wrong place. Here we help people who want to learn Perl. (People who want bespoke ad-hoc programs written for

Set up env variables on Linux

2007-06-13 Thread [EMAIL PROTECTED]
or system "cd dest_folder" or exec "cd dest_folder" but after running script, the current folder doesn't change at all. Anyone please shed some lights on this. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

'Keys' Question

2007-06-14 Thread [EMAIL PROTECTED]
line 318, near "%ConfigFile {InputDataFile" I can't find any declaration of any of the entities referenced above. I was wondering if someone could give me some hint as to what the problem might be. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: 'Keys' Question

2007-06-14 Thread [EMAIL PROTECTED]
On Jun 14, 7:59 am, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > Most likely the second line should look like this: > > @TablePreReq = keys(%{$ConfigFile{InputDataFile}}); This gets it to compile. I was a bit puzzled because this code is in production (apparently as is in the origina

Re: 'Keys' Question

2007-06-14 Thread [EMAIL PROTECTED]
Actually, it turns out the version in question is NOT in production. Someone (before my time) put a new, nonfunctioning version in PVCS. -- 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-15 Thread [EMAIL PROTECTED]
Sweet Chas! My two cents is to check out XML::Twig at http://www.xmltwig.org/ . It's easy to get a grip on and well suited to reading attributes as well as elements in elements. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2007-06-15 Thread [EMAIL PROTECTED]
In the documentation it says that you can read files chunks at a time but I haven't tried it. > Ken Foskey > FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Problems with arrays

2007-06-20 Thread [EMAIL PROTECTED]
Hi everybody, I got a problem with handling sub-routines and arrays. Here is an example of the code: #!/usr/bin/perl -w (@old_header,@old_atoms,@old_bonds) = mol2_read($opts{m}); sub mol2_read { return ([EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); } Ok, now the problem: If

Re: Problems with arrays

2007-06-21 Thread [EMAIL PROTECTED]
On 20 Jun., 15:58, [EMAIL PROTECTED] (Andrew Curry) wrote: > You could do it a couple of ways the way I would go about it is > > My(@arr1,@arr2,@arr3); > mol2_read($opts{m},[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]); > > sub mol2_read { > My($opt_m,$arr1,$arr2,$

  1   2   3   >