Re: looking for a better way...

2003-08-14 Thread Pinku Bhatnagar
Hey Jerry, I have a one quick solution for you. str = "\"q4171\",\"(08/11/03 23:30:48)\",\"\""; @array = split(/,/,$str); foreach (@array) { s/\"//g ; } HTH Pinku Jerry Preston wrote: Hi!, I am trying to breakdown this line: "q4171","(08/11/03 23:30:48)","" with ( @data ) = split /[,|\"]/

RE: How to replace a long string in a text file?

2003-08-14 Thread Bob Showalter
perlwannabe wrote: > Now that I have, with all of you helping, dealt with the unlink problem. > I am now faced with a new problem. > > I have a file, myfile.txt, that consists of various text items that are > repetitive. I am trying to replace many of the repetitive items with a > place holder. H

Re: combinations

2003-08-14 Thread Rob Dixon
"David Byrne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am fairly new to Perl and haven't approached a scipt > this complex or computation this intensive. So I > would certainly appreciate any advice. > > I have successfully created a hash of arrays > equivalent to a 122 x 6

Re: Net::Telnet - Variable won't change

2003-08-14 Thread Jeff Westman
--- SilverFox <[EMAIL PROTECTED]> wrote: > Jeff Westman wrote: > > > > > --- SilverFox <[EMAIL PROTECTED]> wrote: > >> Hey can someone help me figure out why the value of $file_exists won't > >> change even when the file is mssing Thx. > >> > >> #!/usr/bin/perl -w > >> $out="/home/laptop/sc

RE: beginners Digest 14 Aug 2003 05:25:35 -0000 Issue 1728

2003-08-14 Thread Schubert, John [NTWK SVCS]
I've been trying to install the net:SNMP Perl module and have been having problems. We got Net:SNMP from SunFreeware.com and added that package, then unpacked and tried to install the perl mods for net:SNMP from Sourceforge.com.They both installed ok. However, when running a perl script

RE: How to read a bitMap file with Perl ?

2003-08-14 Thread Dan Muey
> Hello all, Howdy! > Incase of reading a bitmap file into an array variable , if > I have to get the hex value do I > have to convert the bitmap file into Hex before sending it > into an array variable or after reading the bitmap file into > an array what should I do if I want the bitmap

$ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
Howdy, I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are handled differently and can be spoofed so don't worry I'm not basing any security on them. What I was wondering is on most unix and apache setups does Perl's $ENV{'REMOTE_ADDR'} always get set to an ip address if it is availa

Re: putting list into value for hash key

2003-08-14 Thread Rob Dixon
Hi Trina. Trina wrote: > > I have a hash that contains keys, but does not yet have values. > How do you push a list of an item into the value for a particular key? > > I tried doing this example below, but it does not seem to be working. > Is there anything wrong with the way this is written? Can

how do i list the methods connected to a object?

2003-08-14 Thread Martin A. Hansen
hi i wonder how i can list all the methods availible from a given object? martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

pipe a file to a perl script

2003-08-14 Thread Asif Iqbal
Let me apologize first for asking a newbie/simple question How can I receive a mail and pipe it to a perl script? The perl script will sit in my .forward file. Basically I want to be able to take that mail and put it in a @mail or $mail like variable and then remove the To: header before injecting

Re: How to replace a long string in a text file?

2003-08-14 Thread Tor Hildrum
perlwannabe wrote: Now that I have, with all of you helping, dealt with the unlink problem. I am now faced with a new problem. I have a file, myfile.txt, that consists of various text items that are repetitive. I am trying to replace many of the repetitive items with a place holder. Here is an e

Re: how to do paging of records

2003-08-14 Thread Gary Stainburn
On Wednesday 06 Aug 2003 1:40 pm, Coello, David wrote: > can anyone help me on how to do paging of records i want a few records per > page, im using oracle 8i.!!! and cgi. > david I personally would look at LIMIT and OFFSET clauses for your select statement to enable you to choose the chunk of re

RE: [New Question] Large file line by line

2003-08-14 Thread Tim Johnson
The difference is that Perl reads the entire file into memory when you do a "@file = ", but it only reads one line at a time if you do a "while()". The difference definitely becomes clear if you try to do that with a 180MB file on a machine with 128MB RAM. -Original Message- From: Pablo

Large file line by line

2003-08-14 Thread Dan Muey
Howdt list. I've never had to work with really big files before( I'm used to tiny ones you can slurp in at once) and now I have to process a 180MB text file line by line and was wondering the most efficient method to do so form within a script not via coommand line. Would I just do open(FH .

Re: While loop on a file handle

2003-08-14 Thread Rob Dixon
Sorry guys. There's a keyboard shortcut set up on my PC that sends my current mail that I often hit accidentally. It means I occasionally post half-finished mails. I'll knuckle-down and fix it. This is the post as it should have been: Hi Trevor. Trevor Morrison wrote: > > I am trying to step th

RE: Perl script to set a password

2003-08-14 Thread Dan Muey
> To preface this, let me say that I am a system administrator > responsible for creating and modifying User accounts on a > Unix system. > > Is it possible to make a Perl script to change passwords > using the passwd command without having to get and answer > those prompts??? I have tried op

Re: How to replace a text in a file

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 5, Vinay Thombre said: >I am novice to Perl and learning very basic things. I want to replace a text >in a file with new text. I want to do it programatically. How can I do that? I hope you've got a good book or two, such as "Learning Perl" (the llama book) published by O'Reilly. The basi

RE: Eval for module

2003-08-14 Thread Dan Muey
> HI howdy again! > > I forgot to ask: > > Whenever I've tried to do: > > eval { use module; }; > if($@) . > > It always fails and I can't trap it it to , say, try a > different module if it's not found or otherwise do anythign, > (like tell a web browser user they need a certain

Re: Look Ahead

2003-08-14 Thread Todd W.
"Sharad Gupta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi All, > > I have a path like: > > $s = "http::/foo/bar:http::/foo1/bar1:http/foo1/bar1"; ^^ Is your data accurately reflected in $s? There is no :: after the

Re: Another reference question (hash of hash references)

2003-08-14 Thread Tim Musson
Thanks Rob, My MUA believes you used Internet Mail Service (5.5.2653.19) to write the following on Friday, August 8, 2003 at 8:43:43 AM. HR> # store access the internal hash by following the reference "->" $hash{four}->>{uid} = "uid4"; $hash{four}->>{cn} = "cn4"; $hash{four}->>{group} = "Group4";

Re: Dump Html file as output from CGI script

2003-08-14 Thread R. Joseph Newton
Dan Muey wrote: > > Greetings to all that is Perl > > Howdy > > > > > Is it possible to specify using a cgi script to read and > > output a Pure HTML file as output.. so that it can process > > the form data.. > > Do you mean can it output an html form to a browser, process it on submit and return

RE: how to do paging of records

2003-08-14 Thread Coello, David
thank you Daniela and also gary this is what i got. it is a very complex query how can i make this work, Please help!!! :o) $sqlselect = "SELECT ximplLatam.id, ximplLatam.country, ximplLatamcountry.couname, ximplLatam.deal_name, ximplLatam.Sector, ximplLatamSector.secname, ximplLatam.mainProduc

RE: SOLVED: how do i list the methods connected to a object?

2003-08-14 Thread Dan Muey
> On Thu, Aug 07, 2003 at 11:28:10AM -0500, Dan Muey wrote: > >> Yeah. The 'return' keyword can even be left out. > > > > Nice! I'll leave it in for readability I think. > > > > Wouldn't it need a ';' at the end? > > [ grep .. ]; > > > > Or am I once again missing something I should know? >

http paths in @INC

2003-08-14 Thread Gupta, Sharad
Hi All, Can i have something like "http:://Somepath" in @INC. -Sharad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ERRNO ... What am I missing

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 7, Allison, Jason (JALLISON) said: >Can someone explain the interaction of POSIX ERRNO and PERL scripts? When >does ERRNO get set and is it set with each PERL call? I cant seem to track >when '$!' is set. Sometimes it will be set to 0, and others 2. I am having >difficultly nailing its

re: Help

2003-08-14 Thread William Black
Hello All, I have an array with the following lines, that always follow this format. I need a regular expression that will just pull the data at the end of the sentence. For example, only AZID, IA, KSOK, MO, NVUT, OR. The Wall will tell ME to update AZID. The Wall will tell ME to update IA. T

Re: ERRNO ... What am I missing

2003-08-14 Thread Steve Grazzini
On Thu, Aug 07, 2003 at 02:43:12PM -0400, Allison, Jason (JALLISON) wrote: >if (scalar(@ReadyHandles) > 0) >{ > ... >else >{ > if (! $ERRNO) > { > ... > } > else > { > # Error on select() call > unless ($ERRNO == EINTR) > { >

Re: How to replace a text in a file

2003-08-14 Thread David K. Wall
Vinay Thombre <[EMAIL PROTECTED]> wrote: [attribution inserted] "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> wrote open INPUT, "< in.txt" or die "can't read in.txt: $!"; open OUTPUT, "> out.txt" or die "can't write out.txt: $!"; while (my $line = ) { # do something to $line print OUTPUT

Eval for module

2003-08-14 Thread Dan Muey
HI howdy again! I forgot to ask: Whenever I've tried to do: eval { use module; }; if($@) . It always fails and I can't trap it it to , say, try a different module if it's not found or otherwise do anythign, (like tell a web browser user they need a certain module for it to work:

Re: can't open dbm file - no space left on device

2003-08-14 Thread [EMAIL PROTECTED]
this is a long shot, but I read today about false 'no space left' errors occuring due to chmod settings being 777 on the directories. I don't know if this has any direct tie to your problem, but you can look at: http://www.yabbforum.com/community/YaBB.pl?board=featuretroub;action=display;num=10

RE: While loop on a file handle

2003-08-14 Thread Jenda Krynicky
From: "Morrison, Trevor (Trevor)" <[EMAIL PROTECTED]> > What I am trying to do is to process a file that has say 1000 orders > in it all pretty much of the same format. I want to open up the file, > and then using a while loop go down through all of the order > one-at-a-time and once I have all th

Re: data not pushing to list

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 7, Trina Espinoza said: >Is there any reason why this doesn't print the @missing? >Ive also tried unless ($myhash{$elem} == 1) { push(@missing, $frame) } >Any insight into what I'm doing wrong would be greatly appreciated. I'd like to know what you're trying to do... I think you're using t

RE: Simple question

2003-08-14 Thread Hanson, Rob
This seems to work... use strict; # two lists for the comparison my @orders = (1,5,7,9,3,1,55,23); my @stash = (4,12,8,0,2,7,9,3,4,13); # hash of unique numbers my %join; # add all of the numbers from both lists to %join. # turn on the 1 "bit" for @orders, and "2" for @stash. # this will give n

Questions of OOP in Perl

2003-08-14 Thread Pablo Fischer
Hi! I have some questions about OOP in Perl. 1. In my class I have lot of methods, but some of them just parse a file or pass a string to a different format (like in C, Im thinking that they are private), In perl, whats the better way to call a private method: $state = $this->city2state("Arg1"

Re: Regex Pattern

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 7, Trevor Morrison said: >I am trying to use regex to extract the city,state and zip out of a file. >Now, the problem is the city can have more then one word to it like > >San Antonio >San Francisco > >I have also, bumped into case of 4 or 5 words in the city name! I am >looking for a rege

RE: Last value in a array?

2003-08-14 Thread NYIMI Jose (BMB)
C:\>perldoc -f pop pop ARRAY pop Pops and returns the last value of the array, shortening the array by one element. Has an effect similar to $ARRAY[$#ARRAY--] If there are no elements in the array, returns the undefined value (althou

RE: get http through a proxy authentication

2003-08-14 Thread NYIMI Jose (BMB)
Try use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->proxy(['http', 'ftp'] => 'http://proxy.mydomain:port'); $req = HTTP::Request->new('GET',"http://www.perl.com";); $req->proxy_authorization_basic("username", "password"); $res = $ua->request($req); print $res->content if $res->is_success

Re: Look Ahead

2003-08-14 Thread Tassilo von Parseval
On Wed, Aug 06, 2003 at 07:02:21PM -0700 Gupta, Sharad wrote: > I have a path like: > > $s = "http::/foo/bar:http::/foo1/bar1:http/foo1/bar1"; > > I am trying to get all the http paths which are seperated by ":" like this: > > @x = ($s =~ /(http::.*?):(?=http::.*?)/g) > > The problem is i get

Getting refering page

2003-08-14 Thread Charles Logan
I've found many references to this while googling around, but no definite answers. I'm wanting to get the refering page information in a perl/cgi script and base the flow of the script on it. That is, if the request is from a refering page that is 'authorized', the script continues on with it'

Re: DBI.pm

2003-08-14 Thread Wiggins d'Anconia
awards wrote: Hi, I had problem installing modules with windows one way and the best way I did for me is to install via a very little program I made in perl here is the code Three lines of code #!/usr/bin/perl use CPAN; shell(); For future reference the above 3 lines equate to: perl -MCPAN -e she

Re: mime::parser(again) download problem

2003-08-14 Thread awards
Hi, Here are the option I forgot to put. Still does not work, I have second script that works, but it creates a folders and puts automatically the files inside that folder But I want to try this way. Thanx for the help!! open(CURRMSG,">c:\\currmsg.txt"); $pop3->get($msg_id,\*CURRMSG); close CU

Re: array of regular expressions on a string

2003-08-14 Thread Rob Dixon
Ramprasad wrote: > > I have an array of regular exps of which I want to match any of them > in a string. How can I do this without eval. > > for eg. > > @array = ( > '/^to: myprog/mi', > '/^from: [EMAIL PROTECTED]/mi' > ); > > $STRING = read_mail_header(...); > > > foreach (@array) { >

Re: our vs my

2003-08-14 Thread Randal L. Schwartz
> "Paul" == Paul Archer <[EMAIL PROTECTED]> writes: Paul> Actually, while we're on the subject: can anyone *really* Paul> explain the difference between the two, or perhaps more Paul> importantly, when someone would want to use 'our' over 'my'? Paul> I've read the docs, but they're not sinking

Re: pid->memory usage - Any takers

2003-08-14 Thread Biju Ramachandran
Please, anybody... Biju From: "Biju Ramachandran" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: pid->memory usage Date: Thu, 07 Aug 2003 11:23:33 -0400 Hi there I just want to know is there any way to find out the PID ans how much a process is using the physical and virtual memory, as it

Re: Sick of Installing CPAN modules

2003-08-14 Thread Janek Schleicher
Nntp.Perl.Org wrote at Thu, 07 Aug 2003 13:32:39 -0700: > However, the Mail::MboxParser, the one that I really need still says it need > MIME::Tools. The actual module is called MIME::tools. I'm wondering if the > program is so stupid that it doesn't realize this ist he same thing. Or > perhaps

Re: quick re help

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 13, [EMAIL PROTECTED] said: >It messes up when I need to wrap lines with \n that don't end in a space. >If there is no space, it places last word on its own line before it >should wrap. Otherwise it double \ns the line. >sub quickWrap { > my $data = @_[0]; You shouldn't use an arra

cookies

2003-08-14 Thread Mace, Richard
I want to start using cookies to store user session information and build associated privileges on web pages. I'm starting as a complete novice in this field, has anyone else got off to a flyer using a book or web-site they can recommend? Any hints gratefully received, thanks, Richard.

RE: ERRNO ... What am I missing

2003-08-14 Thread Allison, Jason (JALLISON)
Quote: "Why are you bothering to look at $! here?" The snippets below are just that, snippets. We are in the progress of testing the upgrade from 5.6.1 to 5.8.0. Everything works great with 5.6.1. When using 5.8.0 (5.8.0 works fine in the http://world.std.com/~aep/ptkdb/ debugger), ERRNO is bei

Re: Perl and Visio

2003-08-14 Thread Michele Ouellet
"Jayson Prichard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Does anyone know where I can find the interfaces to Visio? Hi! I have read Visio properties, but I am not sure it has Custom Properties. At any rate, this URL should get you started. Good luck, ms-help://MS.MSDNQTR.20

Re: What is qr for in reg expressions in a a string?

2003-08-14 Thread Rob Dixon
Alan Perry wrote: > <[EMAIL PROTECTED]> wrote: > > I've been reading the previous post and was wondering about what qr does [snip] > For the second array item, the line translates to: > print "found\n" if $str =~ '^from: [EMAIL PROTECTED]'mi > Which could also be written as > print "found\n"

RE: Quick export question

2003-08-14 Thread Bob Showalter
Dan Muey wrote: > I'm wanting to setup a module that will export whatever is in > @EXPORT (if anythign) and ':basic' > > IE I want > use Monkey; > To be identical to > use Monkey qw(:basic); > > So if I have this on the module which of 3 ways I'm trying to > accoomplish that are valid (if any)?

Re: Still need unlink help!! God help me. - Revisited

2003-08-14 Thread perlwannabe
> This works - i've tried it... > > print 'Deleted ' , unlink (<*997*>) , ' files.\n'; > > good luck > Duncan Yes, it does. But it does not work when reading from a variable. my $temp = '*997*'; print 'Deleted ' , unlink (<$temp>) , ' files.\n'; This very simple variation of your example does n

RE: Read only variabls

2003-08-14 Thread Dan Muey
> > Not sure this is what you are after but ... > > *x = \15; > print "\$x=$x\n"; > $x = 16; # => Modification of a read-only value attempted at ... > print "\$x=$x\n"; > > Jenda You're a genius! I'd love to understand further: - why using a glob like that make

SOLVED: how do i list the methods connected to a object?

2003-08-14 Thread Martin A. Hansen
problem solved: given an arbitrary object, i can now get a dump of all the functions connected to the object. print &dump_functions( $obj ); sub dump_functions { use Data::Dumper; use Class::Inspector; my ( $obj ) = @_; my ( $ref, $methods, @methods ); $ref = ref $obj

Re: Still need unlink help!! God help me. - Revisited

2003-08-14 Thread david
"Perlwannabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > This works - i've tried it... > > > > print 'Deleted ' , unlink (<*997*>) , ' files.\n'; > > > > good luck > > Duncan > > Yes, it does. But it does not work when reading from a variable. > > my $temp = '*997*'; > print '

Re: Still need unlink help!! God help me.

2003-08-14 Thread david
"Perlwannabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >> > >> The directory c:/testdir/ contains many files, but I want to delete > >> the files with any *item###*.* from the directory. So if the > >> directory has 3000 files I want to delete every file that has item997 >

RE: Quick export question

2003-08-14 Thread Charles K. Clarkson
Dan Muey <[EMAIL PROTECTED]> wrote: : : I'm wanting to setup a module that will export whatever is in : @EXPORT (if anythign) and ':basic' : : IE I want : use Monkey; : To be identical to : use Monkey qw(:basic); Seems like you really need is a way to test this for yourself. Here's a qui

RE: mime::parser(again) download problem

2003-08-14 Thread Stephen Gilbert
> -Original Message- > From: awards [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 8:54 AM > To: [EMAIL PROTECTED] > Subject: mime::parser(again) download problem > > > Hi, > > This is how i'm retrieving messages(code below). The text is > fine it is > perfectly downloading

RE: Ok I am tired

2003-08-14 Thread Gupta, Sharad
>> IO::Stringy (non-core module) was the old way to do it... Don't work for me. I modified the sub to look like: sub Foo::Inc { ... my $module = $response->content(); my $fh = new IO::Scalar \$module; return $fh; } And i can't find the module. -Sha

RE: Last value in a array?

2003-08-14 Thread EUROSPACE SZARINDAR
Hi, You can use my $LastValue = $ARRAY[ $#ARRAY-1 ]; The pop function suppress the last value of the ARRAY. Michel -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Date: vendredi 8 août 2003 12:57 À: [EMAIL PROTECTED] Objet: Last value in a array? Hi, I have a c

Re: Get html page title and make a temporary variable

2003-08-14 Thread Mark Stosberg
In article <[EMAIL PROTECTED]>, Rich wrote: > --=_NextPart_000_00BF_01C35E82.8A144710 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Beginners, > I'm about to write my first Perl script that will function to send this = > page. When

Re: "HTH"

2003-08-14 Thread Tim Musson
Hey John, My MUA believes you used Mozilla 4.79 [en] (X11; U; Linux 2.4.4-4GB i586) to write the following on Thursday, July 24, 2003 at 1:49:25 PM. >> I wonder is there an official tech slang acronym site? JWK> This is probably as close as you are going to get: JWK> http://catb.org/~e

Re: Regarding substitution

2003-08-14 Thread Visu
On Sat, 9 Aug 2003, Wiggins d'Anconia wrote: > Visu wrote: > > Hi, > > I have extracted links from a html source using HTML::TokeParser. > > I used 'a' as a parameter in get_tag method of HTML::TokeParser.Then I > > want to substitute something for the links that i have extracted. > > But t

RE: Ok I am tired

2003-08-14 Thread Gupta, Sharad
Ok all I/O works with this filehandle, but seems like require don't like it. Any ideas why??. -Sharad -Original Message- From: Gupta, Sharad Sent: Sunday, August 10, 2003 12:59 PM To: Steve Grazzini Cc: [EMAIL PROTECTED] Subject: RE: Ok I am tired >> IO::Stringy (non-core module) was

Re: Quite day

2003-08-14 Thread Wiggins d'Anconia
Dan Muey wrote: All I hear are crickets on the list anybody there today? Maybe its because the northeastern quarter of the US was blacked out all day... muuuhhh we have power! Here's a quick thing I was wondering since I'm no http expert. You wondering something, never happen, ;-) I'd l

RE: Ok I am tired

2003-08-14 Thread Gupta, Sharad
Ur examples are cool. I never knew i can do that. But my problem was: I was trying to port some of my scripts to Windows. I know i can get all of the modules which my already written scripts would be using via http. And i did'nt wanted to map the drive on *all* the windows mach

Re: Installing Modules

2003-08-14 Thread Janek Schleicher
sc0017 wrote at Mon, 11 Aug 2003 13:04:12 +0300: > Hi all i am newbie in perl! > > How could i install any module i want? Read perldoc -q install and perldoc perlmodinstall Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: document creation. (HTML page breaks)

2003-08-14 Thread shawn_milochik
excellence_personified@

Re: i need help accessing a hash

2003-08-14 Thread Wiggins d'Anconia
Jerry Preston wrote: Hi! I have the following hash: %layout = ( hotspots => { JERRY => [ { '_DIMENSION' => [ 'width', 'height' ] }, { 'cell_center' => [ -1240955,

logging issue

2003-08-14 Thread Quenten Griffith
Hello all, For somereason I have a bit of code that will not write out to the log file when it finds my array empty #Start of upload Files } elsif ( $ARGV[1] eq "-p" ) { $log->write(" Ok we have been passed the -p so we will be putting files to $site"); my $ftp =

Re: visual perl

2003-08-14 Thread R. Joseph Newton
Dr J wrote: > > > MS Visual studio .NET > > > > Technology. Does this need to be installed? If so, is there an > > > evaluation version of this? > > > > Yes, ActiveState's Active versions of their apps require .NET. I am > not > > aware of any evaluation versions of it. > > >> But the framework is

Re: Still need unlink help!! God help me. - Revisited

2003-08-14 Thread Peter Scott
Use the glob() function instead of <> for file globbing. Then you won't have to worry about situations like the one you accidentally fell into. -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: smtp problem

2003-08-14 Thread awards
Hi, to use net::smtp I can connect via pop?? If so can please tell me. Regards award -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

i need help accessing a hash

2003-08-14 Thread Jerry Preston
Hi! I have the following hash: %layout = ( hotspots => { JERRY => [ { '_DIMENSION' => [ 'width', 'height' ] }, { 'cell_center' => [ -1240955, -312200,

Re: document creation.

2003-08-14 Thread K. Parker
- Original Message - From: "Wiggins D'Anconia" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "Chris Knipe" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 09, 2003 5:07 PM Subject: Re: document creation. > Chris Knipe wrote: > > Lo all, > > > > I want to create la

Quite day

2003-08-14 Thread Dan Muey
All I hear are crickets on the list anybody there today? Here's a quick thing I was wondering since I'm no http expert. I'd like to have a simple spider that will look at a url's diretcory and simply give me a list of files in that directory. IE my $files = ? http://www.monkey.com/bannan

Re: Socket

2003-08-14 Thread Josimar Nunes de Oliveira
Try "Perl 5.8.0 Documentation: perlipc". All you want to start socket is there. Josimar - Original Message - From: "awards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 1:08 PM Subject: Socket > Hi, > > > I would like to know if it is possible to tran

compare date,time

2003-08-14 Thread awards
Hi, I have the following 12/08/2003, 11:00 13/08/2003, 23:00 Now I would like to compare them and then calculate the how long time was elapsed in terms of hours. For the example above it will return 36 hours. I don't know if there is a module that do that or a function or we just have to progra

RE: Getting refering page

2003-08-14 Thread Dan Muey
> I've found many references to this while googling around, but > no definite > answers. I'm wanting to get the refering page information in > a perl/cgi > script and base the flow of the script on it. That is, if > the request is > from a refering page that is 'authorized', the script > c

Counting Days

2003-08-14 Thread Support
Hi All Just require a memory nudge again. I'm looking for a small script to count the number of days between two dates. Date format is dd/mm/ Cheers Colin --- www.rentmyplace.co.nz The ultimate in that

Re: Net::Telnet - Variable won't change

2003-08-14 Thread Jeff Westman
--- SilverFox <[EMAIL PROTECTED]> wrote: > Hey can someone help me figure out why the value of $file_exists won't > change even when the file is mssing Thx. > > #!/usr/bin/perl -w > $out="/home/laptop/scripts/perl/logs/resetmf.log"; > open OUT, ">>$out" or die "Unable to open $out :$!"; > >

RE: sending multiple email

2003-08-14 Thread Kogulan, Reggie
You would have to put the cc email addresses in double quote: such as "[EMAIL PROTECTED]" ; "[EMAIL PROTECTED]" Reggie >>>-Original Message- >>>From: awards [mailto:[EMAIL PROTECTED] >>>Sent: Saturday, August 09, 2003 2:56 PM >>>To: [EMAIL PROTECTED] >>>Subject: sending multiple em

RE: Installing Modules

2003-08-14 Thread NYIMI Jose (BMB)
For installations on Windows, read http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:04 PM To: [EMAIL PROTECTED] Subject: Installing Modules Hi all i am n

Can run through perl, but not alone?

2003-08-14 Thread KEVIN ZEMBOWER
I feel so stupid, but I and a co-worker have been staring at this for two hours, with no progress. I'm trying to run some perl scripts which came with the system Cacti. One is webhits.pl: centernet:/usr/local/httpd/htdocs/cacti8/scripts # cat webhits.pl #!/usr/local/bin/perl if ($ARGV[0] eq "")

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Bob Showalter
Dan Muey wrote: > Howdy, > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are handled > differently and can be spoofed so don't worry I'm not basing any > security on them. I'm no security expert, but how can these be spoofed? They don't come from the request headers, but are deriv

Re: putting list into value for hash key

2003-08-14 Thread James Edward Gray II
On Tuesday, August 12, 2003, at 02:27 PM, Trina Espinoza wrote: I have a hash that contains keys, but does not yet have values. How do you push a list of an item into the value for a particular key? I tried doing this example below, but it does not seem to be working. Is there anything wrong w

RE: :Telnet - Variable won't change

2003-08-14 Thread Dan Muey
> Hey can someone help me figure out why the value of > $file_exists won't > change even when the file is mssing Thx. > $file_exists = $t->cmd ("perl -e 'print 1 if (-s > \"$newdir[$x]\")'") or > warn "Unable to execute: $!\n"; You probably need to escape the single quotes as well. Try tha

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Bob Showalter
Dan Muey wrote: > > Dan Muey wrote: > > > Howdy, > > > > > > I realize that $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_ADDR'} are > > > handled differently and can be spoofed so don't worry I'm not > > > basing any security on them. > > > > I'm no security expert, but how can these be spoofed? They > >

Re: Read only variabls

2003-08-14 Thread david
Dan Muey wrote: > > Howdy, > > I read in an earlier email that some people put _ in front of > variables/function/etc to show that they are "important and should be > handled by the program only" and it said that some "modules enforce this" > > I guess what I'm getting at is: > > If my module

RE: How do I return more than 1 array from a sub routine ?

2003-08-14 Thread NYIMI Jose (BMB)
In your subroutine, return reference of each array (or hash) like this: sub my_sub{ #blah return ([EMAIL PROTECTED],[EMAIL PROTECTED]); } Calling: my ($array_ref1,$array_ref2)=&my_sub(); More Info ? perldoc perlref José. -Original Message- From: T.S.Ravi Shankar [mai

Problems with PPM and ActivePerl

2003-08-14 Thread KING,SETH (HP-Boise,ex1)
I recently installed the ActivePerl 5.8.0.806 on my Win2k box. I installed it in the default location "C:\Perl" and have not moved it or done anything to the installation. When I type "ppm" at the C:\ prompt I get the following error: "Error: neither 'HKEY_LOCAL_MACHINE/SOFTWARE/ActiveState/PPM//I

Re: Global variables and a forked process

2003-08-14 Thread Paul Archer
Yesterday, Wiggins d'Anconia wrote: > Yes and no. There are multiple different implementations of threads all > of which have some good and bad points. You will need to look more into > them depending on your version of Perl and how complex the task is that > you wish to accomplish. (There is also

perldap on win32 - NSLDAPSSL32V30.dll

2003-08-14 Thread Ashish Srivastava
Hi, I have installed perldap module on my window machine. But whenever i use that module it gives error: NSLDAPSSL32V30.dll not found. I searched thie dll file on net, but couldnot find. Can anybody suggest where can i find this file. Thanks , Ashish

RE: $ENV{'REMOTE_ADDR'}

2003-08-14 Thread Dan Muey
I think what I'll do is just log $ENV{'REMOTE_HOST'} and $ENV{'REMOTE_USER'} into a mysql database so I can review that info to watch for abusers. Since they are logging in that will help verify most everybody and if a user wants to give out his login info to other folks then just watching my li

RE: array of regular expressions on a string

2003-08-14 Thread EUROSPACE SZARINDAR
Hi, Why don't you do like that : @array = ( '^to: myprog', '^from: [EMAIL PROTECTED]' ); $STRING = read_mail_header(...); foreach (@array) { if($STRING=~ /$_/mi ) { # This should work # FOUND . } } or

indexing flat files

2003-08-14 Thread siva sai
Hi, I have a file (about 3-4 MB ) with about 2 records in it. I need to create an index on a particular field (integer ) in each record. But there might be multiple records matching a particular field value. My queries are something like, "Get all records with the A < field value < B" This

Re: pipe a file to a perl script

2003-08-14 Thread Asif Iqbal
On Tue, 12 Aug 2003, Asif Iqbal wrote: > Let me apologize first for asking a newbie/simple question > > How can I receive a mail and pipe it to a perl script? The perl script will sit > in my .forward file. Basically I want to be able to take that mail and Nevermind , I found the answer. > put i

Re: Get html page title and make a temporary variable

2003-08-14 Thread R. Joseph Newton
Rich wrote: > I think I have a good idea how to do this except for one thing. How do I get the > page from the html page the script is being called from and then > create temporary variable that I can print the title on /send_this_page.pl and also > make it the subject of the outgoing email?

Flock under IRIX, Solaris and Linux

2003-08-14 Thread James Amrhein
Hi, I'm trying to get flock to behave consistently between IRIX,Solaris and Linux (2.4.x). When I run the following Perl Program, IRIX and Solaris allows the Shared lock (and doesn't execute the inside of the while loop) Where as, Linux denies the Shared lock with "Resource temporarily una

Re: compare date,time

2003-08-14 Thread David Storrs
On Mon, Aug 11, 2003 at 10:25:07PM +0200, awards wrote: > Hi, > > thank you, Now i have a new question. > If I do the code myself which I can do. > would the process of executing the program faster if I do the code myself or > if I use a Module i.e Date::Calc?? > > regards > awards There is a s

  1   2   3   4   >