Re: Copyright

2001-06-15 Thread Andrew
al will pirate an idea, code or whatever which is copyright in say, England. Or is it OK for the US to steal property of other nations ? The US is not the sole repository of good and worthwhile ideas. Now, I'll get off my soapbox and go back to lurking on this very informative list ! Andrew (An Australian)

Cookie and redirecting.

2001-09-26 Thread Andrew
#x27;12345') { #load new web page. } Thanks, Andrew Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- To unsubscribe,

Re: Cookie and redirecting.

2001-09-27 Thread Andrew
Thanks pal, you are great. I will try out. Cheers, Andrew -- Sawsan Sarandah <[EMAIL PROTECTED]> wrote: > Hi Andrew, > I've been working on a similar question recently. > Try to set the cookie and > then redirect back into the same script. When > setting the cookie

Login Screen

2001-09-27 Thread Andrew
Dear all, 1) Any body knows to go about creating login screen program for perl. 2) The good websites about this. Thanks, Andrew Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free

Re: CGI script to change user's password, and login.

2001-10-02 Thread Andrew
to set the private_groups and private users, also set the httpd.conf files. this is some thing I know. there should be more ref. Thanks and cheers, Andrew --- Tan Wee Keong <[EMAIL PROTECTED]> wrote: > Hi, > > Recently I've received a task to write a script > (CGI) to al

Revolution of Perl

2001-11-09 Thread Andrew
Hey Gentlemen, Can anybody tell me if wrting Perl can be as easy as writing a simple story. It would be good If we can discard away all the syntaxes, expecially. It can even be OO based to compete with Java, C++. Cheers, Andrew

How to evolve Perl to ignore syntax and can just write a story to finish the program.

2001-11-15 Thread Andrew
Thanks, Andrew __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

test

2001-11-15 Thread Andrew
__ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Greedy v non greedy regexps in lookahead.

2008-11-23 Thread Andrew
I am tying to expand some camel case with spaces - but I want multiple captitals to remain as one word. So I want "PerlNotesOnXML" -> "Perl Notes On XML" My attempt is to use [A-Z]+ in a lookahead. my $text = "PerlNotesOnXML" ; $text =~ s/(?=[A-Z]+)/ /gx ; print $text ; I think I can se

Re: Greedy v non greedy regexps in lookahead.

2008-11-23 Thread Andrew
Thanks "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > How would it parse "XMLSchema" ? You need to write down the rules > before you try creating than regex for them. Try: > Ok - I am a typical customer - my stated requirement isn't quite my real requirement :-)

Non interactive interaction

2013-02-28 Thread Andrew
I'm a brand newbie to cpan and relatively inexperienced with perl. I was given some cpan commands to follow for a third party application I'm trying to install/build, but I want to script (bash) these commands as chances are I'll be reinstalling a bunch of times after I screw it up. The module

Re: cannot install modules

2016-12-22 Thread Andrew
Not sure but check out or install libssl-dev ( root privs required ) 22.12.2016 16:56, Luca Ferrari пишет: Hi all, running perl 5.25.8 on kubuntu 16.10 via perlbrew I try to install Net::SCP but got this strange stuff: % cpanm Net::SCP ... Successfully installed Net-SSH-0.09 ... Successfully i

Re: cannot install modules

2016-12-22 Thread Andrew
https://srcc.stanford.edu/farmshare2/software-perlbrew 22.12.2016 17:24, Andrew пишет: Check also this article ( nearing the issue I guess ) 22.12.2016 17:13, Andrew пишет: Not sure but check out or install libssl-dev ( root privs required ) 22.12.2016 16:56, Luca Ferrari пишет: Hi all

Re: cannot install modules

2016-12-22 Thread Andrew
Check also this article ( nearing the issue I guess ) 22.12.2016 17:13, Andrew пишет: Not sure but check out or install libssl-dev ( root privs required ) 22.12.2016 16:56, Luca Ferrari пишет: Hi all, running perl 5.25.8 on kubuntu 16.10 via perlbrew I try to install Net::SCP but got this

RE: the ENV command? parameter?

2001-06-07 Thread Andrew Nelson
do something completely different with it. As I said, it's dependent entirely on context. Your mileage may vary. hope that helps, Andrew Nelson -Original Message- From: Bradshaw, Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 10:53 AM To: [EMAIL PROTECTED] Subject: t

RE: directory listing to array

2001-06-07 Thread Andrew Nelson
nd attempt at decent code Probably not the best way. I'm still a newbie hack somedays myself. But this should work :) -=- G. Andrew Nelson Release Engineer Storigen Systems, Inc. 650 Suffolk Street Lowell MA 01854 +1 978 323 4454 x271 -Original Message- From: Evan McNabb [mailto:[

RE: Problem with getting a file to open

2001-06-07 Thread Andrew Nelson
You can open a file via open() for reading or writing, but not both. Try open (FILE, $file); print FILE; close(FILE); And see if that doesnt help. -Original Message- From: Sara Campbell Meeks [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 12:39 PM To: '[EMAIL PROTECTED]' Subje

RE: Special Variable for name of the running script

2001-06-14 Thread Andrew Nelson
Sure. Try $0. :) -Original Message- From: Charles Lu [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 2:31 AM To: [EMAIL PROTECTED] Subject: Special Variable for name of the running script When you run a perl script from command line, you can often retrieve the arguments through

Net::FTP

2001-07-23 Thread Hinkle, Andrew
nd did not work. If I step through the ftp process on that command line, that command works like it is supposed to. Any ideas? Andrew Hinkle Unix Systems Administrator CA Secretary of State's Office 916.653.2320 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DBI tutorial

2001-04-29 Thread Andrew Teo
Hi all, I am interested in self-learning the DBI module for database manipulation. Are there any good online tutorials available? Thanks, Andrew

Re: Got a project for Perl but need some help

2001-04-30 Thread Andrew Teo
Just curious, how would you send an attachment? Johnathan Kupferer wrote: > > Aww... you should have let him hire a consultant. ;o) > > Seriously though, this is dead simple. Gary's code is great and robust > if a bit intimidating for a newbie. You said you have background in > VisualBasic

Re: regexp trouble

2001-05-07 Thread Andrew Teo
try this : $tmp =~ tr/a/ /; Johan Groth wrote: > > Hi, > I want to strip a variable of all characters including a token, i.e. > aaa_bbb_ccc_ddd would become bbb_ccc_ddd. As you can see I want to get rid of > aaa_. Does anyone know how to acomplish this in Perl? > > I've tried: > $tmp = "aaa_

RE: create a new file

2001-06-01 Thread Andrew Prueser
open(FILEHANDLE, ">filename") the '>' indicates open for append, or create if doesn't exist. checkout 'perldoc -f open' for all the fun things you can do with open. Andrew -Original Message- From: Nichole Bialczyk [mailto:[EMAIL PROTECTED]

gettin awk output from obj.conf files.

2001-06-06 Thread Andrew Roberts
Below is a script that I can't get to work as a Korn shell script. I would like to get something like it to run in perl. What I am attempting to do is search thru all of the websites on my server and make a file that tells me what websites reside in what directory. I can get the first part of

Deleting an element from an array.

2001-10-03 Thread Mason, Andrew
ope that makes sense). The second solution whilst effectively removing the unwanted element would mean that the end of my array was filled with duplicates or rubbish, so isn't really a solution unless I can then tidy it up somehow. TIA Andrew -- To unsubscribe, e-mail: [EMAIL PROTEC

Where are the archives?

2001-10-04 Thread Mason, Andrew
Where are the archives? Sorry to ask such a dumb question but I don't know and it might save me posting others. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Periodic Auto Start

2001-10-05 Thread Mason, Andrew
I think the 'Scheduled tasks' referred to is what I would call the Scheduler service. AT jobs can be created from the command line (probably fine if you are a Unix/Perl type person) or from the GUI using WINAT (if you are a dumb NT person like me). To use AT jobs the Scheduler service needs to

Capturing Output from a program

2001-11-29 Thread Andrew Tait
d not found But when run from the script nothing happens. How can I capture the output? Or at least have the output print to screen. Andrew Tait System Administrator Country NetLink Pty, Ltd E-Mail: [EMAIL PROTECTED] WWW: http://www.cnl.com.au 30 Bank St Cobram, VIC 3644, Australia Ph: +61 (03) 58

Does Perl have an equivalent of C's #include

2001-12-05 Thread Andrew Clark
The subject says it all. R, AJFC Please CC replys, I'm not on the list.

Left side variable interpolation during associative arrayassignment?

2001-12-31 Thread Andrew Koebrick
his be done? If not, is there a standard workaround? Many thanks for any assistance. Andrew Koebrick Web Coordinator/Librarian MN-Planning (Office of Strategic and Long Range Planning) 658 Cedar St., Suite 300 St. Paul, MN 55155 651-296-4156 phone 651-296-3698 fax www.mnplan.state.mn.us --

use hashref here?

2002-01-19 Thread Andrew Koper
I am working on an org chart app. It is easy to loop through an employee list and get an array of everyone who reports to a given user ID (say, a vice president), but my logic breaks when I try and loop through the list again and get arrays of everyone who reports to the managers in the initial a

Using system variables (M$ OS's)

2002-01-21 Thread Mason, Andrew
g this? Cheers, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Using system variables (M$ OS's)

2002-01-21 Thread Mason, Andrew
Fantastic! Thankyou. From: Briac Pilpré [mailto:[EMAIL PROTECTED]] Sent: 21 January 2002 16:05 To: [EMAIL PROTECTED] Subject: Re: Using system variables (M$ OS's) Andrew Mason wrote: > I would like to print a line containing the value of a system variable > (I'm running on M$

news articles database

2002-01-22 Thread Hughes, Andrew
ntent considering that I will want to format the output and keep paragraph breaks online etc. Do I store them as .txt files, .doc files or cut an paste the content? Any input from people who have gone down this path or can point out some possible pitfalls is greatly appreciated. Thanks, Andrew -

formatting database text

2002-02-05 Thread Hughes, Andrew
database? How do I go about doing this? All suggestions are welcome. Thanks, Andrew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Issuing multiple concurrent commands (to system)

2002-02-07 Thread Mason, Andrew
Is it possible to issue multiple concurrent commands to system (for instance) from within a perl script? If it is (and I strongly suspect that it must be) would someone please be so kind as to suggest some terms or perl commands to look up. (I suspect the term threading might appear but I don't

enumerating subarrays

2009-04-04 Thread Andrew Fithian
What's a slick way to enumerate all subarrays of length n from a master array of length m? For example I've been enumerating all possible two card hands from a deck of 52 cards (n=2, m<=52) using nested for loops: for ( $i = 0 ; $i < $#deck ; $i++ ) { for ( $j = $i+1 ; $j <= $#deck ; $j++

escaping regex to do math on backreferences

2009-04-12 Thread Andrew Fithian
scape the regex and do addition on a backreference to get something like /(\d+)[cdhs]\1+1[cdhs]\1+2/? Thanks, -Andrew

RE: Simple regex question

2009-05-19 Thread Andrew Curry
A crude one ($part,$unit,$x,$y,$xlen,$ylen) = ($1,$2,$3,length($4),length($5)) if ($string =~ /(^\S{5})\.(\d{2})([+-])(\d+)\.(\d+)$/); -Original Message- From: Dan Fish [mailto:d...@ninemoons.com] Sent: 19 May 2009 14:18 To: beginners@perl.org Subject: Simple regex question Simple que

RE: recurive chown with perl chown

2009-06-19 Thread Andrew Curry
http://www.perlmonks.org/?node_id=202898 may be of use. -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Harry Putnam Sent: 19 June 2009 14:36 To: beginners@perl.org Subject: recurive chown with perl chown How to manage a recursive chown using perl function chown?

Totally lost on how to get the argv of Perl

2009-07-31 Thread Andrew Steinborn
I need to know how to get the arguments passed to Perl. I'm using the ActiveState built version of Perl on Windows Vista. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: How to pass info to a CGI program without using a form?

2009-08-24 Thread Andrew Steinborn
boll wrote: There is a perl program running on my server that delivers random images to a web page. The image on the html page is specified by this html code: http://localhost/cgi/random_image.cgi"/> I would like to use this program in several places to display images from other director

Re: Totally lost on how to get the argv of Perl

2009-08-24 Thread Andrew Steinborn
Shawn H. Corey wrote: Andrew Steinborn wrote: I need to know how to get the arguments passed to Perl. I'm using the ActiveState built version of Perl on Windows Vista. Perl loads the command-line arguments into the special variable @ARGV See `perldoc perlvar`. Thanks. I figured i

RE: find an entry in hash array

2008-03-20 Thread Andrew Curry
%hash = map { $_ => 1 } @array; is just a funny way to write %hash = (); foreach $_ (@array) { $hash{$_} = 1; } -Original Message- From: Sharan Basappa [mailto:[EMAIL PROTECTED] Sent: 20 March 2008 1

RE: Joining/Merging AoA

2008-04-24 Thread Andrew Curry
As this is a beginners list are you going to explain... push my @c, [EMAIL PROTECTED] @a}]; push @{$c[0]}, (@{shift @b})[1]; $c[$_->[0]] = [ @{$_} ] while $_ = shift @a; push @{$c[$_->[0]]}, $_->[1] while $_ = shift @b; -Original Message- From: Jay Savage [mailto:[EMAI

RE: hash return from a sub

2008-04-28 Thread Andrew Curry
Ill make a guess it's a scope issue, but cant be sure without the main code. Try something like use strict; my %test=mysub(); print %test; sub mysub { my(%myhash,$var1,$var2); $var1 = '1'; $var2 = '2'; $myhash{$var1} = $var2; print %myhash; return ( %myhash

RE: sql and perl

2008-04-28 Thread Andrew Curry
-Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: 28 April 2008 17:53 To: beginners@perl.org Cc: Francisco Valladolid Subject: Re: sql and perl Francisco Valladolid wrote: >> >> I want to start learning about sql and how it interacts w/ perl. >> >> My rough idea is to

RE: question on foreach loop

2008-05-01 Thread Andrew Curry
>-Original Message- >rom: J. Peng [mailto:[EMAIL PROTECTED] Sent: 01 May 2008 15:31 To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: question on foreach loop To add a statement of "print $_" follow the foreach, you will see what was happening. foreach (@data){ print "$_\n";

RE: what is ^M at the end of a line?

2008-05-21 Thread Andrew Curry
If your trying to do this on a unix based system ^M is equivalent to \r\n so you can get rid of \r I believe. -Original Message- From: Remy Guo [mailto:[EMAIL PROTECTED] Sent: 21 May 2008 15:20 To: Rob Coops Cc: Perl Beginners Subject: Re: what is ^M at the end of a line? it's really

RE: What is wrong with this script ??

2008-08-20 Thread Andrew Curry
Depending on your server the error could be that the group doesn't exist i.e. on unix you would need to add the groups to /etc/group first. -Original Message- From: Jyotishmaan Ray [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 13:17 To: beginners@perl.org Subject: What is wrong with th

RE: doubt

2008-08-20 Thread Andrew Curry
Im going with empty string or null. -Original Message- From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 14:34 To: beginners@perl.org Subject: doubt Hi All, Can you please tell me what is the value of $file. When i execute this script . it says "Can't open : N

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

2008-09-02 Thread Andrew Curry
Perl -p -i -e "s/search/replace/;" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 September 2008 15:06 To: beginners@perl.org Subject: Perl equivalent of "sed -f" or "awk -f" I'd like to apply a series of inline edits to a file in Perl. With sed, I could

Introduction to Perl talk available at osbootcamp.org

2008-09-06 Thread Andrew Ross
Hi All, Open Source Bootcamp (osbootcamp) teaches skills with open source. We recently had a Perl talk which we've recorded and made freely available from the osbootcamp.org videos section. Enjoy! Andrew http://osbootcamp.org

Re: How can I execute linux commands on terminal and catch the results?

2008-09-29 Thread Andrew Smith
Hi Daniel I think the qx command will do what you want. It's described in perldoc perlop An example of it in use is perl -e '$res=qx/date/;print $res;' -- Andrew Daniel Nascimento wrote: Hello everyone! I'm learning perl and I need some help. I want to write a script t

Re: Beginners' books for Perl newbies using Windows?

2008-09-30 Thread Andrew Smith
gt;> Cross-Platform language. >> > > Yes, the book "Learning Perl" had 5th in 2008. > and you can download it from the here: > www.freebookspot.net > also it had many frees books to download. > good luck. > > Air > > > -- -- Andrew **

RE: Reg : Browser Back Button

2008-11-03 Thread Andrew Curry
Actually using javascript it is possible although probably not recommended and again can not be guaranteed to work on all browsers. -Original Message- From: Rob Coops [mailto:[EMAIL PROTECTED] Sent: 03 November 2008 10:42 To: beginners@perl.org Subject: Re: Reg : Browser Back Button On M

RE: [Fwd: Re: Determining if a file is more than so many days old]

2008-11-20 Thread Andrew Curry
old] Sorry, forgot to send it to the list... Ray - Hi Andrew, AndrewMcHorney wrote: > I am working on a perl script that will go through a directory and > it's subdirectories and purge all the files that are more than a > specified number of days old. I am using a Unix sy

Re: subroutine definitions

2004-03-01 Thread Andrew Gaffney
of my ears after reading a few pages of the first one... -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

interacting with table layouts using DBI

2004-03-02 Thread Andrew Gaffney
;, mm is a 2 digit month, and is a 4 digit year. If the table doesn't exist, I want to create it with the same layout as all the rest. I can write a program that does this the hard way, but before I started, I wanted to know if there was an easier way. -- Andrew Gaffney Network Administ

Re: interacting with table layouts using DBI

2004-03-02 Thread Andrew Gaffney
Andrew Gaffney wrote: Is there an easy way with DBI (or anything other modules) to retrieve and modify the layout of database tables in a MySQL DB? I need to write a program to add 2 fields to ~40 tables with an identical layout. The tables are named "m"mmyy where "m" is an

iterating through hash of hash references

2004-03-03 Thread Andrew Gaffney
ach (keys %$tabledesc) { foreach (keys %$tabledesc->{$_}) { print "$_ = $tabledesc->{$_}, "; } print "\n"; } } $dbh->disconnect(); sub get_table_list { $sth = $dbh->prepare("SHOW TABLES"); $sth->execute; while($ref = $sth->fetchro

Re: interacting with table layouts using DBI

2004-03-03 Thread Andrew Gaffney
Ed Pigg wrote: On Mar 2, 2004, at 5:53 PM, Andrew Gaffney wrote: Is there an easy way with DBI (or anything other modules) to retrieve and modify the layout of database tables in a MySQL DB? You might want to look at Class::DBI on CPAN. That is the general idea. I was thinking about something

Re: iterating through hash of hash references

2004-03-03 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney <[EMAIL PROTECTED]> wrtoe: :foreach (keys %$tabledesc) { : foreach (keys %$tabledesc->{$_}) { Shouldn't that be: foreach ( keys %{ $tabledesc->{$_} } ) { :print "$_ = $tabledesc->{$_}, "; : } :

Re: iterating through hash of hash references

2004-03-03 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney <[EMAIL PROTECTED]> wrote: : Now I've got another issue. : How can I dynamically assign new keys to a hash without : getting warnings when using 'use warnings'? I get the warning : about an undefined value on the line with the 

Re: HERE DOCUMENTS

2004-03-06 Thread Andrew Gaffney
s, post it; keep this Perl Chain Posting going... If you want to indent your ending line (EOF, EOT, END_OF_COMMANDS, etc.) for readability, you can do so like this: print <<" EOF"; # Single quotes turn off variable interpolation (found out hard way) This is some text. More text. f

Re: OT: Re: subroutine definitions

2004-03-08 Thread Andrew Gaffney
Wiggins d'Anconia wrote: Andrew Gaffney wrote: [snip] Really, I'm the only user of my code. I don't expect to get replaced anytime soon as my boss also doubles as my father ;) Besides, I certaintly don't want to make things easier for my replacement (if there ever is one

Re: OT: Re: subroutine definitions

2004-03-08 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney <[EMAIL PROTECTED]> wrote: : : I'm currently going through and cleaning up all my code : and moving all common code to my module. Get used to doing it. In about a year you'll wonder why you did it that way and how you did anything wi

Re: True IP behind a router?

2004-03-10 Thread Andrew Gaffney
en use regex to grab the IP. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

using Expect to change password

2004-03-15 Thread Andrew Gaffney
I've read through the Expect.pm documentation and looked at what few examples I could find, but I still can't figure out how to use Expect to interact with the 'passwd' program. Can anyone point me to an example that does this? Thanks. -- Andrew Gaffney Network Administrator

Re: using Expect to change password

2004-03-15 Thread Andrew Gaffney
Andrew Gaffney wrote: I've read through the Expect.pm documentation and looked at what few examples I could find, but I still can't figure out how to use Expect to interact with the 'passwd' program. Can anyone point me to an example that does this? Thanks. I figured it ou

weird Perl errors

2004-03-18 Thread Andrew Gaffney
how to get these errors/warnings to stop popping up everytime this script is run? This script is run a lot and it's filling up my error log. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: weird Perl errors

2004-03-19 Thread Andrew Gaffney
Randy W. Sims wrote: On 03/19/04 00:58, Andrew Gaffney wrote: I keep getting the following errors in my Apache error log every time a certain script is run: Prototype mismatch: sub Apache::ROOT::cgi_2dbin::showday_2epl::time2str vs ($;$$) at /usr/lib/perl5/5.8.0/Exporter.pm line 59. at /home

using DBI to form query with variables that have quotes

2004-03-19 Thread Andrew Gaffney
#x27;, "); Example: INSERT INTO people VALUES(NULL, "Firstname", "Lastname", ""123 Anywhere Address"", ..."); INSERT INTO people VALUES(NULL, "Firstname", "Lastname", '123 O'Walley Street', ..."

Re: using DBI to form query with variables that have quotes

2004-03-20 Thread Andrew Gaffney
WC -Sx- Jones wrote: Andrew Gaffney wrote: INSERT INTO people VALUES(NULL, "Firstname", "Lastname", ""123 Anywhere Address"", ..."); INSERT INTO people VALUES(NULL, "Firstname", "Lastname", '123 O'Walley Street&#x

Re: using DBI to form query with variables that have quotes

2004-03-20 Thread Andrew Gaffney
Wiggins d'Anconia wrote: Andrew Gaffney wrote: WC -Sx- Jones wrote: Andrew Gaffney wrote: INSERT INTO people VALUES(NULL, "Firstname", "Lastname", ""123 Anywhere Address"", ..."); INSERT INTO people VALUES(NULL, "Firstname", "La

extracting data from table embedded in Word document

2004-03-20 Thread Andrew Gaffney
Phone AnotherPhone Row 2 First2 LastaddyCityState Zip 555- So it looks like 3 records instead of 2. Does anyone have any ideas on how to pick apart the data to get it into the DB? -- Andrew Gaffney Network Administrat

Re: extracting data from table embedded in Word document

2004-03-20 Thread Andrew Gaffney
R. Joseph Newton wrote: Andrew Gaffney wrote: I'm writing a web-based client information system for a lawyer. [OT} Eek!! Be very, very careful about security, please. I trust your employer has taken "duty of care" isuues into account. [/OT] His current client list is in

Re: extracting data from table embedded in Word document

2004-03-20 Thread Andrew Gaffney
Andrew Gaffney wrote: I'm writing a web-based client information system for a lawyer. His current client list is in a 137 page Word document with an embedded table. I can get it into a somewhat usable format by copying the entire table, pasting into Excel, and saving as tab delimeted text

displaying ASCII value of character

2004-03-20 Thread Andrew Gaffney
don't think is right because it shows as a CRLF on the terminal. I have an input file which has data between '\r' characters. Some of these fields contain '\n' and the mystery character. I have a regex which changes any '\n' to '~~~': s/\n+/~~~/sg;

Re: displaying ASCII value of character

2004-03-20 Thread Andrew Gaffney
Andrew Gaffney wrote: I have a non-printable character that I'm trying to match in a regex, but I can't figure out what it is. If I know it comes after '~~~' in a string, how can I show its value? I tried: s/~~~(.?)/sprintf "|%d|", $1/se; but that just display

Re: displaying ASCII value of character

2004-03-21 Thread Andrew Gaffney
Andrew Gaffney wrote: Andrew Gaffney wrote: I have a non-printable character that I'm trying to match in a regex, but I can't figure out what it is. If I know it comes after '~~~' in a string, how can I show its value? I tried: s/~~~(.?)/sprintf "|%d|", $1/s

Re: extracting data from table embedded in Word document

2004-03-21 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney <[EMAIL PROTECTED]> wrtoe: : : I managed to get Word to export it into a format where : the fields are separated by '\r'. Yeah, kinda weird. I : wrote the following: : : open FILE, $file; : my $counter = 0; : : while () { :while (

Re: extracting data from table embedded in Word document

2004-03-21 Thread Andrew Gaffney
R. Joseph Newton wrote: Andrew Gaffney wrote: The above code won't work because it splits on a comma. A lot of the fields contain a comma somewhere within the actual data. If it was easy as that, I would have had this done long ago ;) -- Andrew Gaffney Hi Andrew, Don't count on it

Re: Using Perl Expect.pm

2004-03-25 Thread Andrew Gaffney
ed but even after escaping the semicolon didn't solve the problem. Can someone give some help or reference link where I can learn what these values like "\x1b?2;2H" mean. Most likely, the problem is that Perl is interpreting what is in the quotes first. Try putting it in single quotes

date math

2004-03-27 Thread Andrew Gaffney
n then find out which ones are the most recent and display them to the user. I also need to be able to determine if a certain date is between 2 dates. I really only need help with the date math part. Everything else I can do. Is there a module that can help me? -- Andrew Gaffney Network Administ

Re: date math

2004-03-27 Thread Andrew Gaffney
Chris Charley wrote: Hello Andrew I've enclosed a text file that demonstrates Date::Simple. HTH Chris - Original Message - From: "Andrew Gaffney" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "beginners" <[EMAIL PROTECTED]> Sent: Saturday, Marc

Re: date math

2004-03-28 Thread Andrew Gaffney
Chris Charley wrote: Hello Andrew I've enclosed a text file that demonstrates Date::Simple. HTH Chris - Original Message - From: "Andrew Gaffney" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "beginners" <[EMAIL PROTECTED]> Sent: Saturday, Marc

Re: date math

2004-03-28 Thread Andrew Gaffney
R. Joseph Newton wrote: Andrew Gaffney wrote: My code ended up looking like: use strict; use warnings; This code is running under mod_perl, so I think both of those are already being used. use constant PAY_PERIOD_DAYS => 14; Good idea. I never use constants. My code makes sense to me, but

Re: Find User Apache is running as

2004-03-28 Thread Andrew Gaffney
e running Linux (might work on other UNIXs too), you can run 'ps aux | grep apache' (Apache 2.x) or 'ps aux | grep httpd' (Apache 1.x). The first column is the user it's running as. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubsc

Re: date math

2004-03-29 Thread Andrew Gaffney
Chris Charley wrote: "Andrew Gaffney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] R. Joseph Newton wrote: Andrew Gaffney wrote: [snip] I didn't do it this way because there is a "first" pay period. If there are only 2 pay periods from the starti

Re: What is happening here

2004-03-29 Thread Andrew Gaffney
ure what results I was expecting when I ran it, but it sure wasn't this: 3 15 63 255 1023 4095 16383 65535 -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <htt

determing number of records returned with DBI

2004-03-30 Thread Andrew Gaffney
Is there a way to find out how many records were returned with a DBI query? There's the obvious counting each record as you fetch it, but I need the count before I start going through them. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e

Re: determing number of records returned with DBI

2004-03-30 Thread Andrew Gaffney
Guay Jean-Sébastien wrote: Hello Andrew, Is there a way to find out how many records were returned with a DBI query? There's the obvious counting each record as you fetch it, but I need the count before I start going through them. I was looking through the DBI documentation (perldo

need help modifying code

2004-04-06 Thread Andrew Gaffney
{width => 200, text => 'Col3', total => 1}, {width => 100, text => 'Col4', total => 0}]; my @data; while(...) { # Get data somehow push @data, ["$data1", "$data2", "$data3", "$data4"]; } genera

determining reference type

2004-04-06 Thread Andrew Gaffney
How do you determine what type of data a reference points to? I have a function (one in previous post) that can take either an array of scalars or an array of hash references. I want to execute different code based on which one it was. How can I do that? -- Andrew Gaffney Network Administrator

Re: determining reference type

2004-04-06 Thread Andrew Gaffney
WC -Sx- Jones wrote: Andrew Gaffney wrote: How do you determine what type of data a reference points to? I have a function (one in previous post) that can take either an array of scalars or an array of hash references. I want to execute different code based on which one it was. How can I do

determining size of array through reference

2004-04-06 Thread Andrew Gaffney
I've got an array reference and I'm trying to figure out how many elements are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and probably a few others that I've forgotten. What is the correct way to do this? -- Andrew

Re: determining size of array through reference

2004-04-06 Thread Andrew Gaffney
david wrote: Andrew Gaffney wrote: I've got an array reference and I'm trying to figure out how many elements are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and probably a few others that I've forgotten. What is t

parsing Apache2 access log

2004-04-09 Thread Andrew Gaffney
arse the Apache access log? -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: parsing Apache2 access log

2004-04-10 Thread Andrew Gaffney
Andrew Gaffney wrote: I maintain the Perl CGI/mod_perl side of a website, and someone else maintains the static HTML side. Well, the htdocs dir has gotten very messy. Because of things I've done with CGI/mod_perl/Mason, there are many static pages that are no longer used. I want to wr

  1   2   3   4   5   6   >