Re: Perl/CGI with FRAMES

2003-03-03 Thread Dennis Stout
Working with Frames will be messy any way you cut it. So messy in fact, I found SSI to be a much nicer way to do things. That's my 2 cents! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI.pm strange results

2003-03-03 Thread zentara
On Sun, 2 Mar 2003 10:50:39 -0600, [EMAIL PROTECTED] (David Gilden) wrote: Hello, I am not understanding why I am getting strange data from the my CGI. Please point out what I have done wrong. Thanks Dave Gilden See the result at, you have to 'order' on item to see the problem.

change of email address

2003-03-03 Thread Apryle Weissmann
Would you please change my email address to [EMAIL PROTECTED] or let me know how to do it myself? Thank you, Apryle Weissmann -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW: Perl/CGI with FRAMES

2003-03-03 Thread Maureen E Fischer
Thanks and thanks to Drieux and Zentra for Your generous suggestions. After looking things over I have decided to try frames, last, after I complete the Remaining changes requested on my new system. My Hesitation is that I wrote the system without this in Mind. The menu program calls

Re: email adress eq email adress?

2003-03-03 Thread Janek Schleicher
On Sun, 02 Mar 2003 06:20:23 +0100, Ian V=?Iso-8859-1?B?5a==?=Nnman wrote: Removing the around the variables solved the problem... There are additional informations about this problem also in the Perl FAQ: perldoc -q What's wrong with always quoting \$vars\? But s/\@/\\\@/; also works and

Re: CGI.pm strange results

2003-03-03 Thread Todd Wade
Zentara [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, 2 Mar 2003 10:50:39 -0600, [EMAIL PROTECTED] (David Gilden) wrote: Hello, I am not understanding why I am getting strange data from the my CGI. Please point out what I have done wrong. Thanks Dave Gilden See

Re: checking if its a real number

2003-03-03 Thread Todd Wade
Casey West [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It was Wednesday, February 26, 2003 when Robert Wideman took the soap box, saying: : I have a cgi that need to accept only numeric values. ie +ve or -ve : real numbers. : Is there a quick and easy way to check this. I

Re: FW: Perl/CGI with FRAMES

2003-03-03 Thread drieux
On Monday, Mar 3, 2003, at 09:38 US/Pacific, Maureen E Fischer wrote: [..] My Hesitation is that I wrote the system without this in Mind. [..] I was afraid you would notice that. the two crucial places you will need to think your way through the frame problem is a. a href= target=foo

Re: Can't get Socket module

2003-03-03 Thread Mark Stosberg
In article [EMAIL PROTECTED], Jeremiah Foster wrote: Hello there! I am having difficulty downloading the Socket module to make a script work. Below is the result of my attempt installing from the command line via Perl; Any suggestions? Perhaps looking at one of the HOWTO's on the web for

Re: FW: Perl/CGI with FRAMES

2003-03-03 Thread Fred T. Sanders
- Original Message - From: Fred T. Sanders [EMAIL PROTECTED] To: drieux [EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:20 PM Subject: Re: FW: Perl/CGI with FRAMES I haven't read through the whole thread but has anyone suggested just using the base tag to set a global target for all

RE: General ftp question

2003-03-03 Thread Beau E. Cox
Hi - -Original Message- From: Ebaad Ahmed [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 3:00 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: General ftp question Hello All, I have just installed SuSe on my computer, I can ftp to any ftpsite from this but cannot

looking through directories recursively

2003-03-03 Thread Kristian Rink
Hi all,... .. I'm trying to handle directories and files using recursion and some perl cookbook recipes. Basically, it all comes down to a script fragment like this: sub strip_directory { my $currentpath=$_[0]; print $currentpath;print \n; opendir(SOURCE, $currentpath) || die

Re: looking through directories recursively

2003-03-03 Thread Janek Schleicher
On Mon, 03 Mar 2003 12:11:51 +0100, Kristian Rink wrote: .. I'm trying to handle directories and files using recursion and some perl cookbook recipes. Basically, it all comes down to a script fragment like this: [snipped the rest] The easiest way is nearly always to use the existing module

Re: looking through directories recursively

2003-03-03 Thread Kristian Rink
Hi there, and thanks for the hint... On Mon, 03 Mar 2003 12:11:51 +0100, Kristian Rink wrote: [snip] The easiest way is nearly always to use the existing module File::Find for handling recursive directory/file structures. I'm by now trying to figure out about what File:Find is capable of

Re: looking through directories recursively

2003-03-03 Thread Sudarshan Raghavan
On Mon, 3 Mar 2003, Kristian Rink wrote: Hi there, and thanks for the hint... On Mon, 03 Mar 2003 12:11:51 +0100, Kristian Rink wrote: [snip] The easiest way is nearly always to use the existing module File::Find for handling recursive directory/file structures. I'm by now trying

newbie question: Win32::AdminMisc::GetFileInfo(): Accessing all info delivered

2003-03-03 Thread Zeno Jauch
Hi, function Win32::AdminMisc::GetFileInfo( $file, \%Attribute) is retrieving several subhashes: at key LangID we have 0x0409 at key Language we have English (United at key FileInfo we have HASH(0x1dbb690) at key Comments we have at key 0x0409 we have HASH(0x1dbb714) How do I access the

How do you return values directly to some variables?

2003-03-03 Thread Jeroen Lodewijks
Hi, I have a question. I have a sub which build a hash of list values. I want to put those list values directly into some local variables but I am unable to get the syntax right. I have something like this at the moment: sub FillHash { my($db) = @_; my (%formatrules); my

Bad File Descriptor!!

2003-03-03 Thread Ron
Hi: In the process of load-testing an ftp server, we hit upon this error Bad File Descriptor. On searching some mailing lists, I found that this could be because of ftp timeouts / problems with the remote file handle in ftp. Is there a way to get more detail on the actual error / exception?? Bad

Re: How do you return values directly to some variables?

2003-03-03 Thread Rob Dixon
Hello Jeroen. Jeroen Lodewijks wrote: I have a question. I have a sub which build a hash of list values. I want to put those list values directly into some local variables but I am unable to get the syntax right. I have something like this at the moment: sub FillHash { my($db) = @_;

$_ vs @_ (was: Using a dereferenced reference to an array)

2003-03-03 Thread Rob Richardson
Greetings! A few days back, I posted a message in which I asked for help figuring out why Perl was reporting that an array had one element when printing the array showed all 17 elements that it was supposed to have. I took a closer look at my entire application last night. I thought I had been

RE: jumping to the end of a loop

2003-03-03 Thread Dan Muey
At 04:01 PM 3/1/2003 +, Anadi Taylor wrote: Hi all, I have written a script that reads in information from a database: name, email, password and username. snip nice description of problem Also: the only reason I am having to pull all this data from the mySql database is

RE: looking through directories recursively

2003-03-03 Thread Hanson, Rob
It should do exactly what you need, I do this routinely. The following is a very basic sample, but might help get you started. use File::Find; # calls wanted() for each file found find(\wanted, '/var/log'); sub wanted { # check to see if the file exists, could be # used instead to skip

RE: grabbing mime type

2003-03-03 Thread Dan Muey
Dan Muey wrote: I have a need to grab specific Mime sections of an array. I've looked at and tried different Mime Modules but can't seem to get it to go. I thought about parsing it manually but I'm not sure if every message will be formatted exactly the same, hence the module.

RE: $_ vs @_ (was: Using a dereferenced reference to an array)

2003-03-03 Thread wiggins
On Mon, 3 Mar 2003 06:01:01 -0800 (PST), Rob Richardson [EMAIL PROTECTED] wrote: snip I am now expanding one of my favorite sayings: C++ gives you thousands of ways to shoot yourself in the foot. Visual Basic hides all the ways it shoots you

URI vs CGI to parse the script's url info

2003-03-03 Thread Dan Muey
HEllo list four quick questions :: # 1) is there a CGI way to grab the scheme fo a url ?? with uri you can do $scheme = $uril-schem($url); but I may need a way to do it with CGI without doing a regex or split at the ':' $self_url = self_url(); # 2) which way is faster the CGI way or the

STDIN question

2003-03-03 Thread David Gerler
Hello all, I have a script that I have been working on with perl builder and win2000. I have it working correctly at this point on the win 2000 machine. Although, I am not finished, I wanted to do a test on the server at this point to make sure everything is working correctly... That is where

adding hash reference into hash

2003-03-03 Thread Yannick Warnier
Hi, I'm just trying to make a structure with a hash containing some references to other (yet unused) hashes. So what I wrote this: $intHash1Ref = {}; $intHash2Ref = {}; %containerHash = { hash1 = $intHash1Ref, hash2 = $intHash2Ref}; Then when I try to have a list of keys to that

RE: STILL NEEW SOME HELP: Using data structures to find similarities and differences

2003-03-03 Thread Aimal Pashtoonmal
Hello, I have three files, for two different cites. The first file contains names of men with their faves, in columns. The second file is the same but for their partner. The third file is a list of similar partners (partner selection based on data fed into a perl script): FILE_1 and FILE_2

RE: STDIN question

2003-03-03 Thread Dan Muey
Hello all, I have a script that I have been working on with perl builder and win2000. I have it working correctly at this point on the win 2000 machine. Although, I am not finished, I wanted to do a test on the server at this point to make sure everything is working correctly... That

running perl under xinetd on linux

2003-03-03 Thread rwc
Is there an issue running perl under linux xinetd where xinetd is listening for connections on a UDP port and then forking the following perl code. When I do this, the perl code does not see any input on STDIN. How does one get at the data received on the socket by xinetd? Roger while (STDIN)

RE: adding hash reference into hash

2003-03-03 Thread Hanson, Rob
Your syntax is a little off... $intHash1Ref = {}; $intHash2Ref = {}; # note use of parens, not curly braces %containerHash = (hash1 = $intHash1Ref, hash2 = $intHash2Ref); The parens store a list into %containerHash, the curly-braces were storing a hash-ref. Rob -Original Message-

How to pass perl variables between files

2003-03-03 Thread Madhu Reddy
Hi, I want to find out how to pass perl variables between files and functions... in C, we declare with extern to work in different files how to do in perl... between files means , i declare variable in file1 and file2 will update those variables and want to access in file1 Ex: like $var1

Re: adding hash reference into hash

2003-03-03 Thread Robin Norwood
Yannick Warnier [EMAIL PROTECTED] writes: Hi, I'm just trying to make a structure with a hash containing some references to other (yet unused) hashes. So what I wrote this: $intHash1Ref = {}; $intHash2Ref = {}; %containerHash = { hash1 = $intHash1Ref, hash2 = $intHash2Ref};

RE: adding hash reference into hash

2003-03-03 Thread Shishir K. Singh
You may want to handle them as $intHash1Ref = {'A' = 'B'}; $intHash2Ref = {'C' = 'D'}; %containerHash = ('hash1' = $intHash1Ref, 'hash2' = $intHash2Ref); foreach my $hashRefKeys (keys %containerHash) { foreach my $hashKeys (keys %{$containerHash{$hashRefKeys}} ) { print $hashKeys,

RE: adding hash reference into hash

2003-03-03 Thread Shishir K. Singh
oops..mistake!! $intHash1Ref = {'A' = 'B'}; $intHash2Ref = {'C' = 'D'}; %containerHash = ('hash1' = $intHash1Ref, 'hash2' = $intHash2Ref); foreach my $hashRefKeys (keys %containerHash) { my $hashRef = $containerHash{$hashRefKeys}; foreach my $hashKeys (keys %{$hashRef} ) { print

pdf2txt

2003-03-03 Thread William.Ampeh
I am trying to convert a pdf (and for that matter a postscript) type file to plain text. Response to my earlier mail suggested using File:Slurp, specifically; #!/usr/bin/perl use File::Slurp; use CGI qw/:standard/; $pdf_guts = read_file(/path/to/my.pdf); - In

File Uploading SCRIPT

2003-03-03 Thread Ramón Chávez
Hello everyone. I'm trying to write a script for Uploading pictures. Can you give me some advice?? What module to look at first?? Thank you. -rm- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: File Uploading SCRIPT

2003-03-03 Thread Hanson, Rob
The CGI module can be used for this. Here is a short example which might (or might not) help. Also check out the perldoc for CGI, or better yet take a look at the Official Guide to Programming with CGI.pm, a book published by Wiley. !-- from the HTML form -- FORM METHOD=POST

RE: File Uploading SCRIPT

2003-03-03 Thread Dan Muey
Hello everyone. Howdy I'm trying to write a script for Uploading pictures. Can you give me some advice?? What module to look at first?? use CGI; See the documentation at cpan. Things I've found are :: - upload the file before any headers are printed - don't forget to make your form

RE: pdf2txt

2003-03-03 Thread Dan Muey
I am trying to convert a pdf (and for that matter a postscript) type file to plain text. Response to my earlier mail suggested using File:Slurp, specifically; #!/usr/bin/perl use File::Slurp; use CGI qw/:standard/; $pdf_guts = read_file(/path/to/my.pdf); Yes $pdf_guts is the

RE: pdf2txt

2003-03-03 Thread Hanson, Rob
I don't know of any Perl solution off the top of my head (check out CPAN), I instead use xPDF which includes a command line utility pdftotext. http://www.foolabs.com/xpdf/about.html Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003

RE: pdf2txt

2003-03-03 Thread Dan Muey
I don't know of any Perl solution off the top of my head (check out CPAN), I instead use xPDF which includes a command line utility pdftotext. http://www.foolabs.com/xpdf/about.html Exactly what you need!! Now all you have to do is figure out what command line command you'd use to do

is there a 'more perl' way of doing this

2003-03-03 Thread Anadi Taylor
Hi all, I have to start by thanking you all for your help so far - its been invaluable. If it were'nt for you guys and gals i would have pulled my hair out by now ! OK - here is the thing: I have written some code and it works fine (yah), but i was wondering if there is a more 'PERL'

Re: How to pass perl variables between files

2003-03-03 Thread david
Madhu Reddy wrote: Hi, I want to find out how to pass perl variables between files and functions... in C, we declare with extern to work in different files how to do in perl... between files means , i declare variable in file1 and file2 will update those variables and want to access

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Janek Schleicher
On Mon, 03 Mar 2003 18:50:35 +, Anadi Taylor wrote: OK - here is the thing: I have written some code and it works fine (yah), but i was wondering if there is a more 'PERL' way of doing things as this code looks bulky to me the code id: ## check to see if username or email

RE: is there a 'more perl' way of doing this

2003-03-03 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
## check to see if username or email already exist ($errmesseml, $errmessuser, $emailuserfound) = False; $errmesseml = True if ($dbemail eq $email); $errmessuser = True if ($dbusername eq $membusrname); ## create readable error message $errmessage = undef; ($errmesseml eq

RE: is there a 'more perl' way of doing this

2003-03-03 Thread Bob Showalter
Anadi Taylor wrote: Hi all, I have to start by thanking you all for your help so far - its been invaluable. If it were'nt for you guys and gals i would have pulled my hair out by now ! OK - here is the thing: I have written some code and it works fine (yah), but i was wondering if

isopen() ?

2003-03-03 Thread Jeff Westman
Isn't there a perl function to test if a file is already open? I could have sworn I used one called isopen() or ifopen() -or- am I getting confused with a similar function in C? If there isn't such a function, how would one test if a file is already open? Jeff

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Rob Dixon
Hi Anadi. Anadi Taylor wrote: Hi all, I have to start by thanking you all for your help so far - its been invaluable. If it were'nt for you guys and gals i would have pulled my hair out by now ! OK - here is the thing: I have written some code and it works fine (yah), but i was

RE: pdf2txt

2003-03-03 Thread William.Ampeh
Yes, and thanks to all. xpdf did it. I comes standard with Redhat 8.0, so I did not have do download antthing. Thanks a lot. __ William Ampeh (x3939) Federal Reserve Board -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to detect a circular macro by using perl

2003-03-03 Thread tao wang
thanks a lot. I'll try. :) --- Beau E. Cox [EMAIL PROTECTED] wrote: Hi Tao, -Original Message- From: tao wang [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 9:49 AM To: [EMAIL PROTECTED] Subject: how to detect a circular macro by using perl Hi Everyone,

Programs - Flow Charts

2003-03-03 Thread Paul Kraus
Does anyone use flow charts to help them with program design. What software tools do you use to put down what you want from a program before you begin to code. Or even the phases you go through before you start to code. Paul Kraus -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Parsing variables

2003-03-03 Thread Luinrandir Hernsen
Hallo I need simple parsing code for a get not a post. that will yeild 4 or 5 variables. Lou #I know I need to get rid of the # Split the name-value pairs @pairs = split(//, $ENV{'QUERY_STRING'}); foreach $pair (@pairs) { # Split the pair up into individual variables.

Re: how to detect a circular macro by using perl

2003-03-03 Thread david
Tao Wang wrote: Hi Everyone, I'm trying to parse lines of macros definitions as following: AV $(G)/er $(M)/q $(T)/w/f Gter/eee M$(W) Tg/ee/fet W$(AV) here is another way of doing it: #!/usr/bin/perl -w use strict; my $code ='CODE'; AV $(G)/er $(M)/q $(T)/w/f G

RE: Parsing variables

2003-03-03 Thread Dan Muey
No no no, don't do it by hand. There's to many things to keep track of, use the CGI module it handles all the messy details for you and do it better than anything you can write ( no offense ;p ) :: use CGI qw/:standard/;; $var = param('var'); $monkey = param('monkey'); print header(); print You

RE: Programs - Flow Charts

2003-03-03 Thread Beau E. Cox
Hi - -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: Programs - Flow Charts Does anyone use flow charts to help them with program design. What software tools do you use to put down what you want

Capture Proccess ID's under win32 (findwin.exe)

2003-03-03 Thread Voodoo Raja
does anyone have the findwin.exe module where I can capture the proccess id for a specific program. Or any other which one has similar capabilities Thanks Sam _ The new MSN 8: advanced junk mail protection and 2 months FREE*

Re: adding hash reference into hash

2003-03-03 Thread Dave K
Yannick, $ perl -e ' %ch = (h1 = {}, h2 = {}); for (keys %ch) { print$_\n; }' h1 h2 Hi, Hello, I'm just trying to make a structure with a hash containing some references to other (yet unused) hashes. see above. So what I wrote this: $intHash1Ref = {}; $intHash2Ref = {};

Backslash in a string

2003-03-03 Thread Guy P
Hello, My Perl program execute a query that bring back into a variable a Windows paths initially stored in a database. I have got problems to manage the backslash. Example: Here's what is stored in the database -- \Directions\unit\progr\sourcsql I would like to get it in a variable thus I could

Managing the backslash in a string

2003-03-03 Thread Guy P
Hello, My Perl program execute a query that bring back into a variable a Windows paths initially stored in a database. I have got problems to manage the backslash. Example: Here's what is stored in the database -- \Directions\unit\progr\sourcsql I would like to get it in a variable thus I could

Re: Get list of available modules?

2003-03-03 Thread Scott R. Godin
Dave K wrote: Greetings! Hello I'm trying to do some Perl for a non-profit organization. The computer administrator doesn't know very much about Perl or about the server. If I were to ask him what Perl modules were available, he'd probably just have to call somebody else and get back to

Re: unsubscribing.... [OT]

2003-03-03 Thread Scott R. Godin
Todd W wrote: Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is too fun, and so occupies far to much of what should otherwise be a productive workday. Alas, I must unsubscribe again. *sigh* Later, all. :) You can point your news reader to nntp.perl.org and

Re: Blacklist an array

2003-03-03 Thread Scott R. Godin
Philipp Gruemmer wrote: A small correction (thanks to Carlos Diaz) Isn't shis code supposed to read the first line of the @input array then read the first line of the @blacklist array, see if the $line contains a $cond and then ptrint true. After that it should carry on with the second

Re: How do I recursively look in every directory

2003-03-03 Thread Scott R. Godin
Randal L. Schwartz wrote: [snip] John Use the File::Find module. John perldoc File::Find I have many examples of this module (including a two-parter that recently appeared in Linux Magazine) on my site. Google for site:stonehenge.com File::Find for the examples. 43 hits at the

Re: Newby first little script. (Lots of errors and wrong ways of doing things)

2003-03-03 Thread Scott R. Godin
Johann Snyman wrote: Hello there, I am a newby trying to learn pearl. I wrote my first little script, and I would love to se where I could have done things better (in a more proffesional way). Feedback would be appreciated! Well you are off to a good start with lines two and three ;)

RE: Backslash in a string

2003-03-03 Thread Beau E. Cox
Hi - -Original Message- From: Guy P [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: Backslash in a string Hello, My Perl program execute a query that bring back into a variable a Windows paths initially stored in a database. I have

Re: Get list of available modules?

2003-03-03 Thread simran
You could also use cpan's autobundle feature: % perl -MCPAN -e shell cpan autobundle Then get the systadmin to mail you the file. The snapshot built by autobundle is very useful as you can then use that to get cpan to install all the modules on another machine for you. To see how CPAN build's

RE: Managing the backslash in a string

2003-03-03 Thread Dan Muey
Uh.. What's the problem? Are you getting an error of some kind? Are you having problems querying a database? A little context/code you're using might help. There is no conflict with having slashes in a string that is stored in a variable so You may want to expound a little more. DMuey Hello,

Re: isopen() ?

2003-03-03 Thread Wiggins d'Anconia
Jeff Westman wrote: Isn't there a perl function to test if a file is already open? I could have sworn I used one called isopen() or ifopen() -or- am I getting confused with a similar function in C? If there isn't such a function, how would one test if a file is already open? If you don't

which is faster?

2003-03-03 Thread Dan Muey
If you can call a subroutine without parenthesis is that faster than with them or does it not matter? Example $time = localtime; or $time = localtime(); is there a difference speedwise/peformace wise/portability wise or any wise at all?

Re: isopen() ?

2003-03-03 Thread Jeff Westman
If you don't mind using the IO::Handle module then it provides an 'opened' method. Otherwise you may want to have a look at its source, or check out perldoc -f fileno Which is all the 'opened' method does... This will work (thanks) Tell me, is there a way to cross-reference

Reading a file

2003-03-03 Thread Diego Aguirre
Hello, I have just learned opening and reading a file, with open (HoyIn,File.txt); @rgstr=HoyIn; foreach $linea (@rgstr) { print $linea ; } close (HoyIn); I want read the file from -lets say- the fifth line on. Any help, pls? Forhp Shiottr J.

please please comfirm (was Parsing variables)

2003-03-03 Thread Luinrandir Hernsen
Thank you for your help but I want to learn this too Here is the code from the HTML GET a href=move.pl?direction=NWamp;cx=5amp;cy=10amp;player=Lou;North West/a And here I think is the CGI code $input=$ENV{QUERY_STRING}; @pairs = split(//, $input); foreach $pair (@pairs)

Re: which is faster?

2003-03-03 Thread Rob Dixon
Hi Dan. Dan Muey wrote: If you can call a subroutine without parenthesis is that faster than with them or does it not matter? Example $time = localtime; or $time = localtime(); is there a difference speedwise/peformace wise/portability wise or any wise at all? Nowise. The parenthese

Re: isopen() ?

2003-03-03 Thread Wiggins d'Anconia
Jeff Westman wrote: This will work (thanks) Tell me, is there a way to cross-reference the file handle to the variable I am using? Suppose I have something like open(IN, $myFile) Can I do some kind of system call to see what variable name is associated with 'IN'? Alternatively, I

Re: Backslash in a string

2003-03-03 Thread Todd Wade
Beau E. Cox [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi - -Original Message- From: Guy P [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: Backslash in a string Hello, My Perl program execute a query that

Deconstructing a PDF using PERL

2003-03-03 Thread Johnstone, Colin
Gidday All, With a view to accessibility we are limiting our publishing of PDFs on our site. We tend to replace and pdfs by creating HTML pages by cutting and pasting from the PDF to our CMS. Is there a automated way of deconstructing a pdf using PERL. Thanking you in advance Colin

Re: Blacklist an array

2003-03-03 Thread John W. Krahn
Scott R. Godin wrote: use Quantum::Superpositions; my @notinarray1 = map { $_ } ^^ eigenstates( any(@Array2) ne all(@Array1) ); my @notinarray2 = map { $_ } ^^ eigenstates( any(@Array1) ne all(@Array2) ); The map

Re: please please comfirm (was Parsing variables)

2003-03-03 Thread Anadi Taylor
From: Luinrandir Hernsen [EMAIL PROTECTED] To: Anadi Taylor [EMAIL PROTECTED] Subject: Re: please please comfirm (was Parsing variables) Date: Mon, 3 Mar 2003 18:53:19 -0500 snip I might be barking up the wrong tree here but I have never seen querystring information seperated by semi colons ; I

Re: Reading a file

2003-03-03 Thread John W. Krahn
Diego Aguirre wrote: Hello, Hello, I have just learned opening and reading a file, with open (HoyIn,File.txt); What would happen if for some reason the file could not be opened? You should ALWAYS verify that the file opened correctly. @rgstr=HoyIn; foreach $linea (@rgstr) { print

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Anadi Taylor
WOW thanks all - a bit of information overload there but a lotta learning so thank you Anadi _ Surf together with new Shared Browsing http://join.msn.com/?page=features/browsepgmarket=en-gbXAPID=74DI=1059 -- To unsubscribe,

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Todd Wade
Anadi Taylor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I have to start by thanking you all for your help so far - its been invaluable. If it were'nt for you guys and gals i would have pulled my hair out by now ! OK - here is the thing: I have written some code

Re: is there a 'more perl' way of doing this

2003-03-03 Thread Anadi Taylor
Thanks a lot for this - these different example have been a lot of help and a valuable education :) Anadi From: Todd Wade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: is there a 'more perl' way of doing this Date: Mon, 3 Mar 2003 19:51:01 -0500 Anadi Taylor [EMAIL PROTECTED] wrote in

Capture Proccess ID's under win32 (findwin.exe)

2003-03-03 Thread Voodoo Raja
From: Voodoo Raja [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Capture Proccess ID's under win32 (findwin.exe) Date: Tue, 04 Mar 2003 09:15:56 +1200 does anyone have the findwin.exe module where I can capture the proccess id for a specific program. Or any other which one has similar

STILL shifting through arrays of line data

2003-03-03 Thread Deb
Okay, I'm still struggling. sigh I just cannot seem to get my mind to stop, look, and listen. Here's some code I'm working on: - 8- use strict; my %cmdLine; my $DBG = 1; while (DATA) { chomp; my ($adx,

Re: Newby first little script. (Lots of errors and wrong ways of doing things)

2003-03-03 Thread George P.
On Mon, 3 Mar 2003, Scott R. Godin wrote: my @scores; my @files = glob /home/johann/smail/Spam/*; foreach my $file (@files) { open(IN, , $file) or die Cannot open file $file: $!; while (IN) { next unless /^Subject:/; push @scores, $_;

Re: STILL shifting through arrays of line data

2003-03-03 Thread George P.
On Mon, 3 Mar 2003, Deb wrote: Okay, I'm still struggling. sigh I just cannot seem to get my mind to stop, look, and listen. Here's some code I'm working on: - 8- use strict; my %cmdLine; my $DBG = 1; while (DATA)

Re: STILL shifting through arrays of line data

2003-03-03 Thread Sudarshan Raghavan
Okay, I'm still struggling. sigh I just cannot seem to get my mind to stop, look, and listen. Here's some code I'm working on: - 8- use strict; You might also want to add a use warnings after use strict and check how

Re: STILL shifting through arrays of line data

2003-03-03 Thread John W. Krahn
Deb wrote: Okay, I'm still struggling. sigh I just cannot seem to get my mind to stop, look, and listen. Here's some code I'm working on: Did you try the code I posted Friday? (Message-ID: [EMAIL PROTECTED]) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL

Re: shifting through arrays of line data

2003-03-03 Thread Deb
John wrote: Did you try the code I posted Friday? (Message-ID: [EMAIL PROTECTED]) John, Thanks, yes, I did. But, the syntax was new to me, and I've been reading up on it. I couldn't really get it to do what I want (see my previous post to this one). But, that's probably b/c I didn't

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
Here's the modified script. I made some changes, as suggested, but there was no change in the output. I've included my entire script. My head is getting mighty flat from banging it against the wall. Oh, and I added use warnings; and I haven't got a clue what I need to do to fix those. sigh

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
(H, this should have been posted, but I don't see it - sorry if this actually becomes a double-posting...) Here's the modified script. I made some changes, as suggested, but there was no change in the output. I've included my entire script. My head is getting mighty flat from banging it

Re: STILL shifting through arrays of line data

2003-03-03 Thread Sudarshan Raghavan
On Mon, 3 Mar 2003, Deb wrote: Here's the modified script. I made some changes, as suggested, but there was no change in the output. I've included my entire script. My head is getting mighty flat from banging it against the wall. Oh, and I added use warnings; and I haven't got a clue

Re: STILL shifting through arrays of line data

2003-03-03 Thread Deb
Sudarshan Raghavan [EMAIL PROTECTED] had this to say, Did you look at the code that I posted at the end of my last mail? I'm so embarrassed! I totally missed it! Wow. This is just what I'm looking for. I'm going to try it out - but it will have to wait until morning (it's 2315 here, and

RE: script to mimic the cusor movement on a terminer or shell

2003-03-03 Thread Dan Muey
Well it depends. Is this script on windows or unix? I'm thinking unix due to the program name. Can you do the same thing via the command line? User~ # echo \cN\cN\c]]Bc]]Bc]]B\cN\cNc]]B\cN\cZ | lrp If not then piping that to them won't work either. Also if that does work you may save your self

RE: STDIN question

2003-03-03 Thread David Gerler
Thanks to all for the replies. The purpose of the line was to parse an input from a form. I could explain my reasons for using that method.. but every time I have tried to word it clearly... it came out all confusing... suffice it to say that you were all a big help. I have worked it out. I

Re: STDIN question

2003-03-03 Thread Randal L. Schwartz
David == David Gerler [EMAIL PROTECTED] writes: David in my script I have a subroutine that begins with this line... David my @stuff = split(//,STDIN); My crystal ball says it's a CGI protocol handler. To which I must reply don't use that, use CGI.pm. Please. -- Randal L. Schwartz -

RE: STDIN question

2003-03-03 Thread Dan Muey
That's what I thought too, that's why I asked where STDIN was coming from. Always a bad idea to parse the input yourself because, as you found, Different OS/perl versions/protocals/etc... May need different parseing Methods. But CGI is modular and platform independent and quite easy to use ::