Re: Leaving this list.

2007-06-05 Thread usenet
your e-mail address to spammers). However, FWIW, this list is reflected out to usenet as "perl.beginners". You can participate via usenet instead of a mailing list (and that gives you more flexibility in protecting your e-mail address). However, I don't know if a usenet reply (such as t

Re: Getting a program pid

2007-06-14 Thread usenet
On Jun 13, 4:10 pm, [EMAIL PROTECTED] (Owen) wrote: > I thought there may have been a perl command like "getpid (program)" > but it doesn't seem so. Yeah, sometimes when we make up commands they don't work. Try the special variable $$ (perldoc perlvar) -- The best way to get a good answer is to

Re: writung to file

2007-06-21 Thread usenet
On Jun 21, 1:10 pm, [EMAIL PROTECTED] (Chas Owens) wrote: > print $out $_ unless $h{(split ':')[0]}++; Just curious - why are you coding around possible duplicates? Can a passwd file have duplicate entries? -- The best way to get a good answer is to ask a good question. David Filmer (ht

Re: CPAN shell (LWP, Net::FTP) won't authenticate properly

2007-06-25 Thread usenet
On Jun 25, 8:32 am, [EMAIL PROTECTED] (Richard Fernandez) wrote: > I'm trying to use the CPAN shell to install some modules from our > internal CPAN mirror. > I'm using a URL of the form ftp://MyCpanMirror/u02/CPAN/ Is your mirror server running Apache or some http server? I have an internal mirr

Re: Adding a line in a file inside many directories

2007-06-29 Thread usenet
On Jun 28, 12:00 pm, [EMAIL PROTECTED] (Ved) wrote: > Now I have to print a single line at say line number 20 in each of 150 > number of kat.s file. Hey, another chance to show off my favorite Perl module, IO::All. > Situation is bit complex (atleast for a beginer like me). Actually it is so si

Re: Help needed created this data structure

2007-07-09 Thread usenet
On Jul 9, 2:04 pm, [EMAIL PROTECTED] (Klute) wrote: > Here is the sample data: That helps us provide a meaningful reply. Something like this will work, though you may want to make the regexp's a little more generalized: #!/usr/bin/perl use strict; my (%affiliate, $parent, $group); whi

Re: installing DBD::mysql

2007-07-12 Thread usenet
On Jul 11, 4:31 am, [EMAIL PROTECTED] (Octavian Rasnita) wrote: > I am trying to install DBD::mysql and I see that it tries to connect to the > server using the socket /var/lib/mysql/mysql.sock > > This is because another version of MySQL was installed on the server, and I > have installed another

Re: installing DBD::mysql

2007-07-12 Thread usenet
On Jul 11, 4:31 am, [EMAIL PROTECTED] (Octavian Rasnita) wrote: > I am trying to install DBD::mysql and I see that it tries to connect to the > server using the socket /var/lib/mysql/mysql.sock > > This is because another version of MySQL was installed on the server, and I > have installed another

Re: Email Notifications

2007-07-13 Thread usenet
On Jul 12, 4:09 pm, [EMAIL PROTECTED] (Mike Blezien) wrote: > I was just wondering if there was another way to track a mailing to see if it > was read, automatically > or other means of tracking email that has been received/read without the > recipient intervention? Nope, can't be done. (well, it

Re: ASCII::Plot::Scatter namespace

2007-07-30 Thread usenet
Inventor wrote: > I would like to call it ASCII::Plot::Scatter because it is an ASCII > scatter plot generator, I don't know what that is, but most people strongly associate ASCII (a character encoding) with Text. Could the module fit under Text::Plot::Scatter? > how do I create the hierarchy wi

Re: a question?

2007-08-02 Thread usenet
On Aug 1, 11:00 pm, [EMAIL PROTECTED] wrote: > can you tell me :"using perl, how a file can be stored into mysql > "? that file is a BUG report , which is made from JUNIT . Perl has no built-in limits on the size of the data it can store or process. You are limited only by the physical constr

Re: automatically open ports

2007-08-04 Thread usenet
On Aug 3, 3:49 pm, [EMAIL PROTECTED] wrote: > How would I make something that would automatically open the correct > ports What do you mean by "open the ports?" Do you mean change your firewall configuration so that traffic on particular port is allowed to pass? (that's what most people would thi

Re: How to check integrity of a webpage from perl

2007-08-08 Thread usenet
On Jul 27, 12:03 pm, [EMAIL PROTECTED] (Ravi Malghan) wrote: > Hi: I am looking to build a script that can go to a webpage, login with a > username/password, download a page, perform a checksum comparison. Two things > I am trying to accomplish. > > 1. Is the website is up > 2. Has the website be

Re: qw with strings containing spaces

2007-08-09 Thread usenet
On Aug 9, 11:58 am, [EMAIL PROTECTED] (Mathew Snyder) wrote: > What I am doing is declaring an array and assigning the value: > @array = qw/All "A - H" "I - P" "Q - Z"/; You don't want qw{} here. Just do it the brute-force way: @array = ("All", "A - H", "I - P", "Q - Z"); -- The best way to

Re: CGI Admin

2007-08-10 Thread usenet
On Aug 9, 10:18 pm, [EMAIL PROTECTED] (Inventor) wrote: > "go into the CGI Admin" in order to debug the issue. I suspect this is a web-based control panel where customers can manage their stuff without shell access. This is probably how you would do things like setting file permissions (which I s

Re: How to open a file in a folder but without knowing its name

2007-08-16 Thread usenet
On Aug 16, 7:13 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > I am a beginner in Perl.. That must be why you seen to be unaware of the perldoc command. > I need a perl script to open a file from a specific folder where the > script is. perldoc -f open > Note:That folder will always have

Re: Read Content Of External File with PERL

2007-08-18 Thread usenet
On Aug 16, 1:37 pm, [EMAIL PROTECTED] (Vunet Us) wrote: > This wouldn't work, obviously: > > open(TEXT,"http://vunet.us/contact/index.asp";); > print TEXT; > close (TEXT); As you say, that won't work. But if you are on a *NIX box then install the IO::ALL module. Then you task is as simple as thi

Re: Help on cleanining strings

2007-08-23 Thread usenet
On Aug 22, 12:21 pm, [EMAIL PROTECTED] wrote: > I've searche over the web and couldn' find an answer to what I need. The web is not the best place to look. The first place you should look for Perl answers is the perldocs themselves. They are very good. > I need to clean all the ocorrences of th

Re: CGI Help

2007-08-23 Thread usenet
On Aug 21, 8:37 pm, [EMAIL PROTECTED] (Tony Heal) wrote: > I want to run a cgi script from another server inside a local cgi page You could use LWP or (better yet) WWW::Mechanize within your local CGI to fetch the content of the remote page and then display it from your local CGI script. -- The

Re: want to make a list of all users connected to a network

2007-09-09 Thread usenet
On Sep 8, 4:52 pm, [EMAIL PROTECTED] wrote: > How would I make a script that gets a list of all the computer names > and ip addresses, internal 192.168..., of the computers attached to my > wired network? Or is there a program that will do this already? Thanks There is already such a program: who

Re: oops concepts

2007-09-13 Thread usenet
On Sep 12, 11:33 pm, [EMAIL PROTECTED] (Perl Pra) wrote: > Hi Gurus, > > I am aware of perl, Now I need to code in perl using oops. Then you should also be aware of Perl docs. Start with: perldoc perltoot (or maybe skim "perldoc perlobj" first) -- The best way to get a good answer is to ask a

Re: Invalid top directory at d:\perl\lib\file\find.pm line 562

2007-09-27 Thread usenet
On Sep 27, 1:29 am, [EMAIL PROTECTED] (Perler) wrote: > [a multipost] Please don't multipost. -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] h

Re: Bubble sort...

2007-10-11 Thread usenet
On Oct 9, 6:06 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > I'm having problems trying to figure out 'bubble sort'. http://en.wikipedia.org/wiki/Bubble_sort -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [

Re: impatient DBI query

2007-10-31 Thread usenet
On Oct 31, 5:20 am, [EMAIL PROTECTED] (Beginner) wrote: > SELECT foo FROM bar WHERE foo like 'baz%' If you are gonna make multiple queries then you should save a prepared statement handle as Jeff showed you. But if this is a one-off query then you can use one of the DBI shortcut methods (untested

Re: About FASTA file

2007-11-08 Thread usenet
On Nov 7, 7:42 pm, [EMAIL PROTECTED] (Auxence Sima) wrote: > a FASTA data file Check out CPAN: http://search.cpan.org/search?query=fasta&mode=all -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-13 Thread usenet
are "strictly prohibited" from any "review, dissemination...". And, yet, you reviewed AND disseminated! Don't you know that you're bound to the terms of whatever disclaimer some guy posts in a usenet group? Man, some people never learn. -- David Filmer (http://davidfi