Problem with cgi

2003-06-27 Thread beginner beginner
Hi All, Seems to be OT but still thought you guys can help me I have an html page If I click submit I calls cgi script and executes that but in my Case Windows XP It is just opening that script. and not executig that. Could you please suggest how to solve this problem Thanks, Amit __

Not able to execute CGI script in Windows

2003-06-28 Thread beginner beginner
Hi All, I have written one cgi script and when try to run through my internet explorer It is opening that script rather than executing that script. Please help me to solve this problem. Thanks & regards, Amit Sharma. _ Get You

Query in Perl & Cgi

2003-06-30 Thread beginner beginner
Hi All, I am trying to run a cgi script which will search through the directory for the input file name mentioned in the link and will show the location of the same on a new web page. I am using File:Find and wanted function to do that but when try to run the same through internet explo

Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
Hi All, I wanted to search for *.html file on Server which I can mount in my Windows XP: e.g. I drive mapped to tech\work\web\documents. as I:\tech\work\web\documents now i try to go inside this directory as $basedir="I:/tech/work/web/documents"; chdir($basedir); but this is not working

Re: Strange behaviour of chdir in mapped drives

2003-06-30 Thread beginner beginner
place I: with D: It starts working. Please help. Thanks, Amit --- "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >From: "Rob Dixon" <[EMAIL PROTECTED]> >> Beginner Beginner wrote: >> > Hi All, >> > I wanted to search for *.html f

Create array of references

2006-06-09 Thread beginner
Hi, I am trying to create an array of references but am getting stuck at how/when to push the reference into the array Below is some sample data and a snip of what I have been trying. What is happening is that the reference $times is getting pushed into the array before all the keys are define

Re: Create array of references

2006-06-12 Thread beginner
On 9 Jun 2006 at 11:55, Peter Cornelius wrote: > The problem you're having is that you're creating a new hash > reference in each of your if/elsif statements. I'm going to make > some assumptions about your data since I don't know anything about > it, but it looks like you want to group back/

Re: scoping problem with hash

2006-06-16 Thread Beginner
On 16 Jun 2006 at 12:15, Paul Johnson wrote: > On Tue, Jun 13, 2006 at 12:06:02PM -0700, Lawrence Statton wrote: > > > Charles Clarkson wrote: > > > @{ %$hash_ref }{ keys %kv_pairs } = values %kv_pairs; > > > > You can excise a little of the snyactic sugar there > > > > @$hash_ref{keys %kv_

RE: uninitialized value error

2006-06-21 Thread Beginner
On 21 Jun 2006 at 11:28, Smith, Derek wrote: > From: Smith, Derek > Sent: Wednesday, June 21, 2006 11:19 AM > To: beginners@perl.org > Subject: uninitialized value error > > > I am getting the following error yet the script is doing what I need it to do > restart a process: > > Use of uninitializ

RE: uninitialized value error

2006-06-21 Thread Beginner
On 21 Jun 2006 at 17:08, Beginner wrote: > for (;;) { > print SDTERR "PS=$_\n"; > push @arry, (split)[1]; > } of course that should read print STDERR "PS=$_\n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: how use Function

2006-07-03 Thread Beginner
On 3 Jul 2006 at 3:04, Umar Draz wrote: > hi dear members! > > i am new in Perl community i want to declare a function and try to pass > some parameters same as i do in php. First i declare a function (umar). > > > sub umar ($width, $height) { > $area = $width * $height / 2; > return

Re: Perl's system "[OS_COMMAND]"

2006-07-05 Thread Beginner
On 5 Jul 2006 at 23:12, BenBart wrote: > Is there another option of running an OS command or UNIX script besides > using system "[OS_COMMAND]", for example system "cat /etc/hosts" or > system "[UNIX_SCRIPT]"? Yes, as you already know: exec, folk and there's the backtick operator `. > How can I

Hash - narff

2006-07-05 Thread Beginner
Hi, I am being a bit lazy here. I already had this hash defined (cut & pasted from another file) and didn't want to re-type it. my %char = ( 65 => 'a', 66 => 'b', 67 => 'c', 68 => 'd', 69 => 'e', 70 => 'f', 71 => 'g', 72 => 'h',

Re: Hash - narff

2006-07-07 Thread Beginner
On 5 Jul 2006 at 10:56, Mumia W. wrote: > Beginner wrote: > > Hi, > > > > I am being a bit lazy here. I already had this hash defined (cut & pasted > > from another file) and > > didn't want to re-type it. > > > > my %char = (

Re: calling a perl script on windows

2006-07-12 Thread Beginner
On 12 Jul 2006 at 0:32, Mahdi A Sbeih wrote: > Hi Chandru, > > Do I need to go to windows_explorer->Tools->Folder Options->File Types > and associating the extension ".pl" with the "perl" executable? Yes. However if you've installed activestate's Perl it would have asked if you wanted to do th

Re: sending output to file

2006-07-27 Thread Beginner
On 27 Jul 2006 at 22:20, Sayed, Irfan (Irfan) wrote: > I need to send / print / write the output of one command to a file > through perl script > > can anybody plz help. deja vu...didn't I see this 2 hours ago! perldoc -q system or perlfaq8#how_can_i_capture_stderr_from_an_external_command

Re: Same Internal Server Error from last two days

2006-07-28 Thread Beginner
On 28 Jul 2006 at 14:13, Dr.Ruud wrote: > Ranish George schreef: > > > > Have you tried changing the shebang line as I have mentioned in > > one of the follow up. Trying changing the shebang to > > > > #!C:\Perl\bin\perl > > That should not make any difference. Windows doesn't use the shebang;

Re: BASEDIR and BASENAME on Windows

2006-08-01 Thread Beginner
On 2 Aug 2006 at 3:24, BenBart wrote: > Hi all, > > Can anyone please tell me how to get the BASENAME and BASEDIR of a file > ... i.e. for example, if I have C:\Windows\Temp\Dir1\MyFile.TXT, I want > to be able to get the BASENAME which is MyFile and the BASEDIR which is > C:\Windows\Temp\Dir1

Suppress Exiting warning

2006-08-07 Thread Beginner
Hi, Error message: "Exiting subroutine via next at mk-thumbs.pl line 188" I have a script that uses File::Find. ...snip use strict; use warnings; use File::Basename; use File::Find; ...snip find(\&wanted, @dirs_to_search); In the callback for find I have this: sub wanted { if ($_ !~ /html

Re: Can't count array in hash in array

2006-08-09 Thread Beginner
On 9 Aug 2006 at 0:33, James Marks wrote: Ohh ohh. I think I know this (they'll flame me if I'm wrong). Is it? use strict; use warnings; my $no_dirs = @{ $web_sites_directory_tree[$i]{subdirectory} }; I hope I'm right..fingers crossed. Dp. > # COUNT NUMBER OF DIRECTORIES - (THIS WORKS)

Re: Can't count array in hash in array - correx

2006-08-09 Thread Beginner
On 9 Aug 2006 at 0:54, James Marks wrote: > > On Aug 9, 2006, at 12:33 AM, James Marks wrote: > > > Down, near the bottom of this example code (marked), I'm trying to > > count the number of elements of an array which is the value of a key > > in a hash which is, itself, an element of an array

Re: Converting Perl Script to Module

2006-08-09 Thread Beginner
On 9 Aug 2006 at 14:28, Mike Martin wrote: > Does anyone know of any resources to aid in this? > > I have a few scripts which I am trying to turn into modules, however > the functions which run as a script (CGI) do not run as modules > > Any help etc This sounds like a job for modperl. Persuma

Seek positioning

2006-08-11 Thread Beginner
Hi, I am trying to open a binary file and find a string that begins: ) { if ($_ =~ "

Re: Seek positioning

2006-08-11 Thread Beginner
On 11 Aug 2006 at 9:28, Tom Phoenix wrote: > On 8/11/06, Beginner <[EMAIL PROTECTED]> wrote: > > > But once I have found my tag I would like to use sysseek and sysread > > to slurp up some data. Is there some way I can find out where my > > position in the file is

Re: Seek positioning

2006-08-14 Thread Beginner
On 11 Aug 2006 at 14:45, John W. Krahn wrote: > Beginner wrote: > > I would be interested to know who I can improve this, or what a real > > programmer would do differently. Any tips are much appreciated. > > Okey doke! > > What I have so far ===

Re: Seek positioning

2006-08-14 Thread Beginner
On 14 Aug 2006 at 3:51, John W. Krahn wrote: One last question (honest). > > What is "s!." in line 12, "next unless s!" > > s/// is the substitution operator. Why are you substituing here? Isn't a match good enough or is it necessary for some other reason? > > Here the output I get: > >

Passing filehandlers

2006-08-23 Thread Beginner
Hi, I trying to be more modular and have put some functions into a separate file, myfunctions.pm. I have another script(s) which call the exported functions from myfunctons.pm. What I would now like is for the myfunctions.pm file to be able to access a filehandle opened by the calling script,

Re: PDF::API2 and content index

2006-08-29 Thread Beginner
On 28 Aug 2006 at 9:37, Daniel Kasak wrote: > Hi all. Olla > Does anyone know if it's possible to create a content index with > PDF::API2, so people viewing the PDF can click in the index and go > straight to the corresponding page of the PDF document? If your referring to the thumbnails sideb

Re: File::find with no_chdir

2006-09-18 Thread Beginner
On 18 Sep 2006 at 15:05, John W. Krahn wrote: > Emilio Casbas wrote: > > I have this script; > > > > --- > > use File::Find; > > > > $File::Find::no_chdir = 0; > > find(\&wanted, @ARGV); > > > > sub wanted { > >print "$File::Find::name\n" if(-d); > >} > > > > --- > > >

Re: File::find with no_chdir

2006-09-18 Thread Beginner
On 18 Sep 2006 at 15:43, David Romano wrote: > Beginner wrote on Mon, Sep 18, 2006 at 03:24:08PM PDT: > > > print "$dir\n", > > > map !/\A\.\.?\z/ && -d "$dir/$_" ? "$dir/$_\n" : (), > > > readdir $dh; > > >

Re: File::find with no_chdir

2006-09-18 Thread Beginner
On 18 Sep 2006 at 22:34, John W. Krahn wrote: I see. Thanx And this I guess: Ternary ``?:'' is the conditional operator, just as in C. It works much like an if-then-else. If the argument before the ? is true, the argument before the : is returned, otherwise the argument after the : is return

[OT] LAMP that is perl

2006-09-20 Thread Beginner
Hi, Sorry for the OT post. I have been looking at CRM (customer relations management) packages and the term LAMP (Linux, Apache, MySql, PHP) keeps appearing. The problem is that PHP is rather slow and perl or mod_perl would be a far better choice. Yet I can't find anything that takes this app

Package clashes

2006-09-26 Thread Beginner
Hi, I am not sure if have all the facts assembled but it looks like I have a clash between two localy installed packages; Image::Info and Image::MetaData. I only noticed when I tried to use Image::Info to read some data on a TIFF file. I got the error: Undefined subroutine &Image::Info::TIFF:

Re: Package clashes

2006-09-26 Thread Beginner
fine. I got the package from CPAN. I'll try and contact the maintainer and let them know. Dp. On 26 Sep 2006 at 14:53, Beginner wrote: > Hi, > > I am not sure if have all the facts assembled but it looks like I > have a clash between two localy installed packages; Image::

Re: Perl Script as a Cron Job

2006-10-11 Thread Beginner
On 11 Oct 2006 at 17:14, Mazhar wrote: > From the help above i created a new perl code and i was successfull in > running the code by typing the command /scripts/newxxx.pl but the same is > not executed by cron i have the cron entry as below > > 10 * * * * /scripts/newxxx.pl This as to be the

paths with space in

2006-10-17 Thread Beginner
Hi All, I am knocking my head against a wall trying to work with directories with spaces. I need to translate some file paths like the one below: /data/scanning/phil/edits/gary/finished/STI 9-10-06/E0102.tif into /var/www/phil/pix/E0102.jpg (I need the path to the tif to make the jpeg). If

Re: paths with space in

2006-10-17 Thread Beginner
On 17 Oct 2006 at 13:16, Perl beginners wrote: > Hi All, > > I am knocking my head against a wall trying to work with directories > with spaces. > > I need to translate some file paths like the one below: > > /data/scanning/phil/edits/gary/finished/STI 9-10-06/E0102.tif > > into > /var/www/p

Re: paths with space in

2006-10-17 Thread Beginner
On 17 Oct 2006 at 15:09, Rob Dixon wrote: > Beginner wrote: > > > > On 17 Oct 2006 at 13:16, Perl beginners wrote: > >> > >> Hi All, > >> > >> I am knocking my head against a wall trying to work with directories > >> with spaces.

Re: paths with space in

2006-10-17 Thread Beginner
On 17 Oct 2006 at 17:19, Rob Dixon wrote: > Beginner wrote: > > On 17 Oct 2006 at 15:09, Rob Dixon wrote: > >> > >> my @tif = glob("'$d/*tif'"); > > > > I am pretty sure I had tied this, it looks like it from my post. > > >

File download in background.

2006-10-24 Thread Beginner
Hi All, I posted this to this list as it's as much a fork() issue as a CGI one. Hope I've done the right thing. I am trying to display a html page and at the same time download a file from a multi-part form. The files are quite large to I wanted to minimise the time it took for the browser to

Re: File download in background.

2006-10-24 Thread Beginner
On 24 Oct 2006 at 12:12, Beginner wrote: Sorry going to top post as I made a mistake. I was doing a straight print and that was why the file was was being displayed. Apologies. Dp. > Hi All, > > I posted this to this list as it's as much a fork() issue as a CGI > one. H

Re: Template module: where is it

2006-10-31 Thread Beginner
If you are trying to use Template::Tookit then you would still declare it's use as use Template; I believe this is the module that your looking for if you've seen that declartion in a script somewhere. HTH. Dp. On 31 Oct 2006 at 12:22, Mário Gamito wrote: > Hi, > > I'm trying to find a PERL m

Extract data from binary file

2006-11-09 Thread Beginner
X-cs: R X-CS-Version: 1.0 From: bob <[EMAIL PROTECTED]> X-RS-ID: X-RS-Flags: 0,0,1,1,0,0,0 X-RS-Sigset: -1 To: kevin Subject: New ftp account created Reply-to: [EMAIL PROTECTED] MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8BIT Date: Fri, 20 Jan 20

Re: Extract data from binary file

2006-11-10 Thread Beginner
On 9 Nov 2006 at 10:49, Tom Phoenix wrote: > On 11/9/06, Beginner <[EMAIL PROTECTED]> wrote: > > > I have a file that, I think is in a binary format, containing emails. > > The file is from my email client, Pegasus, and I want to extract all > > the emails stored

create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
Hi, I am trying to create a line graph with GD::Graph::Lines. I have data being passed by CGI in the format: "ancode_1" = "ADV " "ADV_2006" = "117216 " "ADV_2005" = "104776 " "ancode_2" = "BAP " "BAP_2006" = "0 " "BAP_2005" = "270 " "ancode_3" = "BOO " "B

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
On 22 Nov 2006 at 15:14, Beginner wrote: > "ancode_1" = "ADV " > "ADV_2006" = "117216 " > "ADV_2005" = "104776 " > "ancode_2" = "BAP " > "BAP_2006" = "0 " >

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
On 22 Nov 2006 at 17:35, Rob Dixon wrote: > Beginner wrote: > > On 22 Nov 2006 at 15:14, Beginner wrote: > >> > [snip] > >> > >> The number of years can vary so you might get data from 2006->1990. > >> > >> The data looks like it is sui

Re: create arrays for GD::Graph::lines

2006-11-23 Thread Beginner
On 22 Nov 2006 at 17:35, Rob Dixon wrote: > Beginner wrote: > > On 22 Nov 2006 at 15:14, Beginner wrote: > >> > [snip] > >> > >> The number of years can vary so you might get data from 2006->1990. > >> > >> The data looks like it is sui

failed substitution

2006-11-24 Thread Beginner
Hi, I have a number of jpegs I wanted to rename. I wrote a short script to do it but the new file name is not always generated correctly. The script should find the last letter in the filename (before the extension) and substitute it for '_a'. If you look at the results below you'll see that '

Re: failed substitution

2006-11-28 Thread Beginner
On 24 Nov 2006 at 23:55, D. Bolliger wrote: > Beginner am Freitag, 24. November 2006 14:48: > > Hi, > > > > I have a number of jpegs I wanted to rename. I wrote a short script > > to do it but the new file name is not always generated correctly. The > > script s

checking hashref for value

2006-12-04 Thread Beginner
Hi, I am trying to parse a xml file. Some of the tags are empty, like this one: # Data::Dumper output 'order_number' => {}, I have been trying to check if there is any content within the hashref (say for order_number) returned by XML::Simple but I am not getting the results I had hoped for.

Re: checking hashref for value

2006-12-04 Thread Beginner
On 4 Dec 2006 at 8:47, Tom Phoenix wrote: > On 12/4/06, Beginner <[EMAIL PROTECTED]> wrote: > > > print "found $ref->{'order_number'}\n"; > > > I get "found HASH(0xacacfe8)". > > That's a reference to a hash. It s

CGI XML

2006-12-07 Thread Beginner
Hi, I have made a script that reads a XML file from disk and creates a PDF from the content. The script currently uses XML::Simple to parse the XML data. For the next phase I would like to receive the PDF from XML via HTTP, rather than have to slurp up the file from disk. I believe this is po

Re: beginner

2006-12-07 Thread Beginner
On 7 Dec 2006 at 3:31, isaac vanderpuije wrote: > have a problem installing the perl msi(windows platform) can anyone help me, > because i need to learn perl urgently. thanks > Could you give us a few more details about the error message and what you've done to try and install it. What is yo

XML in, XML out

2006-12-22 Thread Beginner
Hi All (and a happy holiday to those that will get a break), I am trying to read in an XML file of addresses. I need to remove all the address data from the file where code =~ /^000/ (there are none in the example data below). I need to reproduce that data 'as is', so I need to honour the tag s

Re: XML in, XML out

2007-01-03 Thread Beginner
On 24 Dec 2006 at 12:23, Rob Dixon wrote: > Randal L. Schwartz wrote: > > "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes: > > > > Rob> my @bad = $doc->findnodes(q{//address[starts-with(code, "BJPU")]}); > > > > Actualy, doesn't that require code immediately below addess? > > Yes > > > Don't you

Re: Hello and a question

2007-01-03 Thread Beginner
On 3 Jan 2007 at 8:02, Tom Messmer wrote: > Hello everyone, Hello and welcome, > Just joined this list and I have a doozie I've been working on for a > bit here to no avail. The entire problem is this; I have a list of > files, say that they are named "flynn.foo, flynn_something.foo, > fla

Re: Hello and a question

2007-01-04 Thread Beginner
On 3 Jan 2007 at 16:19, Tom Messmer wrote: Hi Tom, They like you to bottom post of this list. See below. > instead of > Copying /usr/blah/htdocs/media/events/blah06/epic_struggle/mp3/ > cuchailain.mp3-> /home/messmer/test/fake_mp3dir/cuchailain/ > cuchailain.mp3 > > In other words, there will be

finding a replacing 0a in strings

2007-01-10 Thread Beginner
Hi, I am trying to parse a file and extract some names. The data has come with some odd characters in, and these characters are sandwiched in the middle of the string I am trying to extract. If i open the file in text editor it looks like this:  JON DAVIES/JIM  REED That leading space is transl

Re: finding a replacing 0a in strings

2007-01-10 Thread Beginner
On 10 Jan 2007 at 9:58, Tom Phoenix wrote: > On 1/10/07, Beginner <[EMAIL PROTECTED]> wrote: > You can use Perl to tell you what the odd characters are. I often use > an ASCII table and unpack: > > print unpack("H*", $data), "\n"; > > > MIK

Re: how to force html4 output

2007-01-11 Thread Beginner
On 11 Jan 2007 at 2:49, Oliver Block wrote: > Hello list, > > first of all a blessed 2007 to all of you. > > Can anyone tell me, if there is a way to force CGI.pm to deliver the html > code > with a DOCTYPE switch for HTML4 and not XHTML? > > As there are some problems with the media type for

XML::LibXML navigation

2007-01-11 Thread Beginner
Hi, I have to do some sanity checks on a large xml file of addresses (snip below). I have been using XML::LibXML and seem to have started ok but I am struggling to navigate around a record. In the sample date below your'll see some addresses with "DO NOT..." in. I can locate them easily enough

Re: XML::LibXML navigation

2007-01-12 Thread Beginner
On 12 Jan 2007 at 17:06, Rob Dixon wrote: Hi Rob, > > > > In the sample date below your'll see some addresses with "DO NOT..." > > in. I can locate them easily enough but I am struggling to navigate > > back up the DOM to access the code so I can record the code with > > faulty addresses. > >

Re: Mail::Sender

2007-01-18 Thread Beginner
On 18 Jan 2007 at 9:55, Brent Clark wrote: > To whom it may concern > > I have a problem whereby on sending an email, my mailserver does not allow > for ip, (needs to be wrapped in [] ). > > >> 220 mail.eccotours.co.za ESMTP Exim (Ecco Tours) 4.63 Wed, 17 Jan 2007 > >> 16:47:41 +0200 > << EHLO

printf

2007-01-18 Thread Beginner
Hi all, Sorry I am sure this is a lame question. I want to print out some column (with heading) and I want them evenly spaced. I know this is a printf but the format eludes me. printf("%c12", $var); # prints $var12$var12 %s seems to give me no output at all. Any ideas? TIA, Dp. -- To uns

Re: printf

2007-01-18 Thread Beginner
On 18 Jan 2007 at 7:19, Hal Wigoda wrote: > for one thing, you need to add "\n" for newline. > > printf("%c12", $var); # prints $var12$var12 > > > > %s seems to give me no output at all. > > I wouldn't want a newline in the middle of my column heading. I would like a 12 character spacing betw

Re: XML::Rules tests [was: Re: XML::LibXML navigation]

2007-01-22 Thread Beginner
On 22 Jan 2007 at 16:42, Igor Sutton wrote: > Hi Jenda, > > I read your message and gave XML::Rules a try, but the tests aren't ok > on Linux. You can change the last line of t/boilerplate.t from > > module_boilerplate_ok(File::Spec->catfile('\lib\XML\Rules.pm'); > > to > > module_boilerplate_

Re: Printing in preprinted invoice

2007-02-02 Thread Beginner
On 1 Feb 2007 at 9:30, Patricio A. Bruna wrote: > Hi, > Anyone knows a easier method, that guest and try, to print an invoice in a > prepinted paper, i need to fill the gaps. > The size of the page is Letter. > I am not sure if this is easier but I use PDF::API2 but I think it's the same pr

Recommend a module for IP discovery

2007-02-15 Thread Beginner
Hi All, I need to discover all the used ip addresses on my subnet, hopefully getting the netbios name as well and any other details. Basically i ran out of dhcp leases today. I need to increase the size of the pool but want to have some details of what hosts are using what before I make any ch

[SOLVED]: Recommend a module for IP discovery

2007-02-15 Thread Beginner
On 15 Feb 2007 at 11:46, Beginner wrote: > Hi All, > > I need to discover all the used ip addresses on my subnet, hopefully > getting the netbios name as well and any other details. > > Basically i ran out of dhcp leases today. I need to increase the size > of the pool

Record separator and regex switch

2007-02-26 Thread Beginner
Hi, I am trying to parse some dhcp-lease files to extract the ip, mac and hostname. I am struggling to get either, the regex of the $/, correct. I am not sure which combination of these I should use. There is some sample data and my best effort below. Can anyone offer any pointers? TIA, Dp.

Re: Record separator and regex switch

2007-02-26 Thread Beginner
On 26 Feb 2007 at 15:58, D. Bolliger wrote: > Beginner am Montag, 26. Februar 2007 14:50: > > Hi, > > Hi > > > I am trying to parse some dhcp-lease files to extract the ip, mac and > > hostname. > > > > I am struggling to get either, the regex o

Re: Record separator and regex switch

2007-02-26 Thread Beginner
On 26 Feb 2007 at 18:13, D. Bolliger wrote: > Beginner am Montag, 26. Februar 2007 17:02: > > On 26 Feb 2007 at 15:58, D. Bolliger wrote: > > > Beginner am Montag, 26. Februar 2007 14:50: > > Hi > > > > > I am trying to parse some dhcp-lease files to e

Re: URL too long

2007-02-28 Thread Beginner
I think GET request are restricted to 256 characters, try using POST instead. HTH, Dp. On 28 Feb 2007 at 18:57, Tatiana Lloret Iglesias wrote: > Hi all, > > i have to browse a very long URL from my PERL script and it fails: > > http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITO

Re: URL too long

2007-02-28 Thread Beginner
method doesnt allow very very long url's ... > how can I use POST from Perl code? do you have any example? > > Thanks! > T > > > On 2/28/07, Beginner <[EMAIL PROTECTED]> wrote: > > > > I think GET request are restricted to 256 characters, try using POS

A long shot

2007-02-28 Thread Beginner
Hi All, This is a long shot. I have a list of files: hash.buckets page.index page.wordlist word.list word.index hash.file They are part of a SQL/Apache/mod_perl installation and these are some kind of indices for searches. I want to examine the contents if possible. It's quite possible that

Re: A long shot

2007-02-28 Thread Beginner
On 28 Feb 2007 at 9:58, Tom Phoenix wrote: > On 2/28/07, Beginner <[EMAIL PROTECTED]> wrote: > > > I have a list of files: > > > > hash.buckets > > page.index > > page.wordlist > > word.list > > word.index > > hash.file > > >

SOAP query

2007-03-05 Thread Beginner
Hi, I am trying to get started with SOAP. I am using mod_perl::Registry, the server script is below. I want to verify that the number of arguments being passed to the server is correct. In the snip below I presumed all the arguments would be items with @_ but it looks like all the arguments ar

Re: Off-Topic: Is the Randall Schwartz of Perl Fame?

2007-03-05 Thread Beginner
Mega. About time too. On 5 Mar 2007 at 11:56, Mathew wrote: > http://articles.techrepublic.com.com/2100-1009_11-6164113.html?tag=nl.e019 > > Mathew > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: centralized variable variables

2007-03-06 Thread Beginner
On 6 Mar 2007 at 6:08, Jeff Pang wrote: > Is it possible to send an variable (through the env or as an > >argument, or ) so I can use the variable $dir from the module > >test.pl to set the variable $vardir in param.pl. ?? > > > > Yes you can. > You may declare the vars wanted to be shared

Centralised variables - different issue

2007-03-06 Thread Beginner
Hi, Following on from the earlier thread about storing common code in a central file, I have hit a problem when trying to do something similar. I have been toying with SOAP. There seems to be a number of ways to create SOAP services and I opted for one of the examples at guide.soaplite.com.

Query regarding seek and tell

2007-03-12 Thread Beginner
Hi, When I ask for the filehandle position (tell) it is reporting the pointer as being a few bytes further along than I expect it to be. For instance if I do this: #!/bin/perl use strict; use warnings; my ($start,$d,$var); my $file = 'myjpeg.jpg'; open(FH,$file) or die "Can't open $file: $!\n

Re: Query regarding seek and tell

2007-03-12 Thread Beginner
On 12 Mar 2007 at 9:34, Tom Phoenix wrote: > On 3/12/07, Beginner <[EMAIL PROTECTED]> wrote: > > > When I ask for the filehandle position (tell) it is reporting the > > pointer as being a few bytes further along than I expect it to be. > > > binmode(FH); > &g

Re: Removing blank lines

2007-03-12 Thread Beginner
On 12 Mar 2007 at 11:09, Grant wrote: > Hello, > > I'm having a lot of trouble figuring out how to remove blank lines > from my HTML. The lines are generated by my shopping cart. I use > (and highly recommend) interchange: > > http://www.icdevgroup.org > > I basically want to wrap all of my c

Re: Query regarding seek and tell

2007-03-12 Thread Beginner
On 12 Mar 2007 at 10:49, Tom Phoenix wrote: > On 3/12/07, Beginner <[EMAIL PROTECTED]> wrote: > > > What I am tring to do is find the x and y dimension of a jpeg > > Ah, Image::Size. > > http://search.cpan.org/~rjray/Image-Size-3.01/lib/Image/Size.pm > &g

polling a directory

2007-03-14 Thread Beginner
Hi, I am trying to find a means of monitoring a directory for activity. I would like a perl process to aware if a file has been dropped into a specific folder and then take some action. In the past I have used cron for this but I was thinking this isn't the best choice because 1) You have to s

Sys::Gamin install error

2007-03-15 Thread Beginner
Hi, OS: FC4 With gamin-0.1.1-3.FC4 and gamin-devel-0.1.1-3.FC4 installed I have hit an error while trying to install Sys::Gamin. I can can run make but the `make test` is failing. The test file for Sys::Gamin reads: use Test; use SGI::FAM; plan tests => 1; ok (SGI::FAM::FAMChanged != SGI::FA

sprintf - Rounding down

2007-03-15 Thread Beginner
Hi, For some reason my sprintf usage is not returning the numbers I had expected and appears to be rounding down. Is there something wrong with my formatting below. === code snip == my ($x,$y) = imgsize($fqn); my $size = $x*$y*3; my $ksiz

Re: sprintf - Rounding down

2007-03-15 Thread Beginner
On 15 Mar 2007 at 8:05, Tom Phoenix wrote: > On 3/15/07, Beginner <[EMAIL PROTECTED]> wrote: > > > For some reason my sprintf usage is not returning the numbers I had > > expected and appears to be rounding down. Is there something wrong > > with my formatting be

Re: Sys::Gamin install error

2007-03-15 Thread Beginner
On 15 Mar 2007 at 8:20, Tom Phoenix wrote: > On 3/15/07, Beginner <[EMAIL PROTECTED]> wrote: > > > I have hit an error while trying to install Sys::Gamin. I can can run > > make but the `make test` is failing. > > > BEGIN failed--compilation aborted at t/gamin

escape character

2007-03-20 Thread Beginner
Hi, I have a large, 1.3GB xml file that I was trying to validate. It turns out that the file has a lot of exotic characters in it such as: é è Ä È ...etc The area of encoding and internationalisation is one I have no experience of at all and from what I've heard it is rather complex and difficult

Re: tiff images

2007-03-21 Thread Beginner
On 20 Mar 2007 at 19:46, Chris Parker wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Rob Dixon wrote: > > Chris Parker wrote: > >> > >> Hello all, > >> > >> How do I get text out of a tiff image? Scenario is that I have alot of > >> directories named (ex. 000, 020, 000) with files

Re: How to add a dir to @INC

2007-03-21 Thread Beginner
On 21 Mar 2007 at 17:05, kilaru rajeev wrote: > Hi, > > Can anybody help me to add a directory to @INC variable? > > Thanks, > Rajeev Kilaru > Either of these should work. Put them at the top, before you use something from somedir. 1) use lib '/path/to/somedir'; 2) unshift @INC, '/path/to/

Re: escape character

2007-03-21 Thread Beginner
On 20 Mar 2007 at 12:55, Chas Owens wrote: > On 3/20/07, Beginner <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a large, 1.3GB xml file that I was trying to validate. It > > turns out that the file has a lot of exotic characters in it such as: > > é &g

Re: How to add a dir to @INC

2007-03-21 Thread Beginner
On 21 Mar 2007 at 0:00, Jeff Pang wrote: > > > > >1) > >use lib '/path/to/somedir'; > > > >2) unshift @INC, '/path/to/somedir'; > > > > This can't work when you add a path to @INC on runtime. > > BEGIN { > unshift @INC,'/path/...'; > } Do you mean you have to put it in a BEGIN block to wo

Re: escape character

2007-03-22 Thread Beginner
On 21 Mar 2007 at 20:05, Dr.Ruud wrote: > "Beginner" schreef: > > > The Iconv route hasn't been too successful either. I tried > > Text::Iconv->new('ISO8859-1','utf8'); > > Thinking that my data is currently ISO8859-1but the resul

RE: Some basic perl queries

2007-03-22 Thread Beginner
On 22 Mar 2007 at 8:59, Kumar, Akshay wrote: > Thanks for the people who responded to original query. > Another related query. > Whats the best way to specify common set of include library directories, > so that I don't end up including (use lib OR "-I") in each file using my > local modules. (rec

Re: How do I generate a hash from an xml document?

2007-03-26 Thread Beginner
On 26 Mar 2007 at 11:55, Dave Adams wrote: > What are the general steps to building a hash from and xml document? > > Here are my steps: > > 1. Read in xml document using XML::Simple > 2. Create and empty hash > 3. Loop through $VAR1 (the anonymous datastructure) and populate hash > > Is this t

Regex problem with accented characters

2007-03-27 Thread Beginner
Hi, I am trying to extract the iso code and country name from a 3 column table (taken from en.wikipedia.org) and have noticed a problem with accented characters such as Ô. Below is my script and a sample of the data I am using. When I run the script the code beginning CI for Côte d'Ivoire returns

XML parsing REST responses

2007-03-29 Thread Beginner
Hi, I might be in above my head here so bear with me if I am not making sense. I have to retrieve and extract an xml fragment from a REST server. I have followed some examples from the "Web Services" book. I am able to retrieve the data via LWP::UserAgent but I am baffled by the hash ref that

  1   2   >