Re: qn about the reg expression.

2004-01-09 Thread R. Joseph Newton
Ajey Kulkarni wrote: > hi , > whenever 1 matches something in regular expression,where the 'MATCHED > EXPRESSION' be stored? will this be stored in $_ variable Nope. The match function populates a list of special variables in the form $1, $2, $3. Generally, we access them within a conditio

qn about the reg expression.

2004-01-09 Thread Ajey Kulkarni
hi , whenever 1 matches something in regular expression,where the 'MATCHED EXPRESSION' be stored? will this be stored in $_ variable where can i find more info about this?? tia -Ajey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pod::usage example help

2004-01-09 Thread R. Joseph Newton
Paul Kraus wrote: > Ok if I understand this then if > --help is called from the page then should display this > =head1 SYNOPSIS Nope. The =head markup tag should not be shown. That is source code, not output. It is a different style from that called for in program code for a very good reason--

Re: Matching invalid characters in a URL

2004-01-09 Thread Wiggins d Anconia
> I'm trying to throw out URLs with any invalid characters in them, like > '@". According to http://www.ietf.org/rfc/rfc1738.txt : >Thus, only alphanumerics, the special characters "$-_.+!*'(),", and >reserved characters used for their reserved purposes may be used >unencoded within a

Equivalent to iconv for encoding conversion

2004-01-09 Thread Jan Eden
Hi, is there a Perl equivalent to the UNIX program iconv (to convert text from some encoding to another)? Maybe even in the standard distribution? I know I could do a system call to let iconv do the job, but I would like to have a fast program. Thanks, Jan -- The day Microsoft makes somethin

Re: Matching invalid characters in a URL

2004-01-09 Thread Wiggins d Anconia
> > Any suggestions? Thanks for your help and thoughts. > > It is much easier to define the set all chars must be in then not. Use > the =! which is the complement of all charachters matched by =~. > Alternatively, I believe there is a c option you can use. > > -Dan That (I presume) should b

Re: Matching invalid characters in a URL

2004-01-09 Thread Dan Anderson
> Any suggestions? Thanks for your help and thoughts. It is much easier to define the set all chars must be in then not. Use the =! which is the complement of all charachters matched by =~. Alternatively, I believe there is a c option you can use. -Dan -- To unsubscribe, e-mail: [EMAIL PROTE

Matching invalid characters in a URL

2004-01-09 Thread KEVIN ZEMBOWER
I'm trying to throw out URLs with any invalid characters in them, like '@". According to http://www.ietf.org/rfc/rfc1738.txt : Thus, only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL. I'd l

Re: sockets on an HPUX

2004-01-09 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > People of the Perl, Hello, > does anyone have a perl program that will create a socket ( srwxr-xr-x ) > for a HPUX 11.0 system? I am in need of this! I have looked into system > calls such as mknod and mkfifo and these are not capable of creating these > special fi

Re: printf sprintf

2004-01-09 Thread david
R. Joseph Newton wrote: > All the use one could imagine. The printf function can print pretty much > anywhere. I believe that it preceded sprintf historically, but I wouldn't > swear > > Many C coders have told me that it is the most efficient way to > write files. huh? please explain why prin

RE: How to parse Microsoft Outlook Inbox

2004-01-09 Thread Bradley A. Brown
You can also export emails into .txt files as well... At least you can on 2000 and XP. You can also get an add-on for Outlook that will automatically do this for you. Since the one I use is a commercial program I will just say do a google search on automatically saving emails in outlook and you sho

Re: Image Magick

2004-01-09 Thread Scott Taylor
At 11:02 AM 01/09/2004, Scott Taylor wrote: At 10:28 AM 01/09/2004, Wiggins d Anconia wrote: http://www.ImageMagick.org/www/perl.html Check the above for an example of how to print an image to a filehandle, in your case you want the default STDOUT I've been all over that page, but I'm still

Re: Image Magick

2004-01-09 Thread Scott Taylor
At 10:28 AM 01/09/2004, Wiggins d Anconia wrote: > Hello all, > > I am trying to use Image::Magick to resize a JPEG. This routine works to > display the full size image from a blob in my Firebird database: > > while ( my ($PixData ) > = $sth->fetchrow ) { > print h

Re: Image Magick

2004-01-09 Thread Wiggins d Anconia
> Hello all, > > I am trying to use Image::Magick to resize a JPEG. This routine works to > display the full size image from a blob in my Firebird database: > > while ( my ($PixData ) > = $sth->fetchrow ) { > print header('image/jpeg'); > print $Pix

Image Magick

2004-01-09 Thread Scott Taylor
Hello all, I am trying to use Image::Magick to resize a JPEG. This routine works to display the full size image from a blob in my Firebird database: while ( my ($PixData ) = $sth->fetchrow ) { print header('image/jpeg'); print $PixData; } But when I a

RE: How to parse Microsoft Outlook Inbox

2004-01-09 Thread Bill Akins
> -Original Message- > From: Tassilo von Parseval > [mailto:[EMAIL PROTECTED] > Sent: Friday, January 09, 2004 12:24 AM > To: Wiggins d'Anconia > Cc: PerlDiscuss - Perl Newsgroups and mailing lists; > [EMAIL PROTECTED] > Subject: Re: How to parse Microsoft Outlook Inbox > > > On Thu, J

Re: Writing style

2004-01-09 Thread Ed Pigg
On Friday, January 9, 2004, at 09:58 AM, Jan Eden wrote: Hmm.. the perlfaq documents do not seem to be installed on my system (Mac OS 10.3.2, Perl 5.8.1). Very strange. [jan:~] perldoc -q "HERE documents" No documentation found for "perlfaq1". No documentation found for "perlfaq2". No documentat

Re: sockets on an HPUX (thanks for the port scanner!)

2004-01-09 Thread Goffredo Saffioti
McMahon, Chris ha scritto: Thank you Mr. Saffioti for the port-scanning code. I have been playing with some simple network programming scripts recently and your code below is much more elegant than mine. I'll be stealing parts of it very soon! =) -Chris maybe u can better apprecia

RE: sockets on an HPUX (thanks for the port scanner!)

2004-01-09 Thread McMahon, Chris
Thank you Mr. Saffioti for the port-scanning code. I have been playing with some simple network programming scripts recently and your code below is much more elegant than mine. I'll be stealing parts of it very soon! =) -Chris -Original Message- From: Goffredo Saffioti

Re: Writing style

2004-01-09 Thread Jan Eden
Wiggins d Anconia wrote: >Don't use here-docs ;-)... I know, a lame cop out, but they are >probably one of the features of Perl I dislike the most. > >http://danconia.org > I guess you're right... ;-) my $var = qq{'qq' will rule from now on} ; print $var; -- There are two major products that c

RE: Use of FOR statement (OT and apologies)

2004-01-09 Thread McMahon, Chris
Don't forget the poetic possibilities, either. Not to mention doggerel and corruption, i.e.: "I have heard the mermaids singing foreach to foreach". "For to for" just wouldn't cut it. -Chris -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Thursd

Re: Writing style

2004-01-09 Thread Jan Eden
Hmm.. the perlfaq documents do not seem to be installed on my system (Mac OS 10.3.2, Perl 5.8.1). Very strange. [jan:~] perldoc -q "HERE documents" No documentation found for "perlfaq1". No documentation found for "perlfaq2". No documentation found for "perlfaq3". No documentation found for "perl

Re: Writing style

2004-01-09 Thread Jan Eden
Rob Dixon wrote: >Jan Eden wrote: >>this is not so much a technical as a stilistic question: How do you >>indent here-quoted parts? When writing code like this: snip >>The tabs get printed into the filehandle ALPHAINDEX. But not >>indenting the here-quoted part makes the script less readable.

Re: Perl sockets on an HPUX

2004-01-09 Thread Goffredo Saffioti
[EMAIL PROTECTED] ha scritto: Great where do I get this IO::Socket module? thank you Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams *Goffredo Saffioti <[EMAIL PROTECTED]>* 01/09/2004 12:52 PM To:[EMAIL PROTECTED] cc:[EMAIL PROTECTED] Sub

Re: solved - OS X, cpan, libnet

2004-01-09 Thread Daniel Staal
--As off Friday, January 9, 2004 1:08 AM -0600, Robert Citek is alleged to have said: On Thursday, January 8, 2004, at 08:22 AM, Daniel Staal wrote: 1. Upgrade to Panther. ;-) It includes Perl 5.8, and plenty more. In the queue to do. Also, want to dual boot with Linux, but that's for an other

RE: :usage example help

2004-01-09 Thread Paul Kraus
Ahhh how annoying. The pod documents can have no white space before the =command or they don't work. They also have to have a blank line before and after them. This seem very anti-perl. Especially with the white space. Paul Kraus --- PEL Supply Company Network Administrator

RE: Perl sockets on an HPUX

2004-01-09 Thread NYIMI Jose (BMB)
You can get it From CPAN http://search.cpan.org/ Just my favour, There is Net::EasyTCP module which offers an elegant API on top of IO::Socket. See: http://search.cpan.org/~mnaguib/EasyTCP-0.25/EasyTCP.pm#SYNOPSIS José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

Re: Writing style

2004-01-09 Thread Tim
From the camel: @sauces = < normal tomato spicy tomato green chile pesto white wine End_Lines At 06:51 AM 1/9/04 -0800, you wrote: Jan Eden wrote: > Hi, > > this is not so much a technical as a stilistic question: How do you indent here-quoted parts? When writing code like

Re: Use of FOR statement

2004-01-09 Thread Bruce Ferrell
TMTOWTDI?=There is more that one way to do it Paul Kraus wrote: Use english? TMTOWTDI? Paul Kraus --- PEL Supply Company Network Administrator -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 5:21 PM To: [EMAIL PROTECTED]

Re: Perl sockets on an HPUX

2004-01-09 Thread DBSMITH
Great where do I get this IO::Socket module? thank you Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams Goffredo Saffioti <[EMAIL PROTECTED]> 01/09/2004 12:52 PM To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: Perl sockets on an HPUX

Re: Writing style

2004-01-09 Thread R. Joseph Newton
Jan Eden wrote: > Hi, > > this is not so much a technical as a stilistic question: How do you indent > here-quoted parts? When writing code like this: > > foreach $letter ('a'..'z') { > my $upletter = uc $letter; > print ALPHAINDEX <<"EOF"; > > > $upl

Re: Writing style

2004-01-09 Thread Wiggins d Anconia
> Hi, > > this is not so much a technical as a stilistic question: How do you indent here-quoted parts? When writing code like this: > > foreach $letter ('a'..'z') { > my $upletter = uc $letter; > print ALPHAINDEX <<"EOF"; > > > $upletter   >

Re: Writing style

2004-01-09 Thread Jenda Krynicky
From: "Rob Dixon" <[EMAIL PROTECTED]> > Jan Eden wrote: > > > > this is not so much a technical as a stilistic question: How do you > > indent here-quoted parts? When writing code like this: > > > > foreach $letter ('a'..'z') { > > my $upletter = uc $letter; > > print ALPHAINDEX

Re: Use of FOR statement

2004-01-09 Thread James Edward Gray II
On Jan 9, 2004, at 7:15 AM, Paul Kraus wrote: Use english? perldoc English TMTOWTDI? Pronounced "Tim Toady", There's More Than One Way To Do It. The Perl motto. James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: coping txt files over a peer to peer.

2004-01-09 Thread William.Ampeh
Thanks David. __ William Ampeh (x3939) Federal Reserve Board -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Writing style

2004-01-09 Thread Jenda Krynicky
From: Jan Eden <[EMAIL PROTECTED]> > this is not so much a technical as a stilistic question: How do you > indent here-quoted parts? When writing code like this: see perldoc -q "Why don't my

Re: sockets on an HPUX

2004-01-09 Thread Goffredo Saffioti
[EMAIL PROTECTED] ha scritto: People of the Perl, does anyone have a perl program that will create a socket ( srwxr-xr-x ) for a HPUX 11.0 system? I am in need of this! I have looked into system calls such as mknod and mkfifo and these are not capable of creating these special files. Thank

pod::usage example help

2004-01-09 Thread Paul Kraus
Ok if I understand this then if --help is called from the page then should display this =head1 SYNOPSIS sample [options] [file ...] Options: -helpbrief help message -man full documentation =head1 OPTIONS If --man or infact i

Re: Writing style

2004-01-09 Thread Rob Dixon
Jan Eden wrote: > > this is not so much a technical as a stilistic question: How do you indent > here-quoted parts? When writing code like this: > > foreach $letter ('a'..'z') { > my $upletter = uc $letter; > print ALPHAINDEX <<"EOF"; > > > $upletter  

sockets on an HPUX

2004-01-09 Thread DBSMITH
People of the Perl, does anyone have a perl program that will create a socket ( srwxr-xr-x ) for a HPUX 11.0 system? I am in need of this! I have looked into system calls such as mknod and mkfifo and these are not capable of creating these special files. Thanks! Derek B. Smith OhioHealth

RE: Use of FOR statement

2004-01-09 Thread Paul Kraus
Use english? TMTOWTDI? Paul Kraus --- PEL Supply Company Network Administrator > -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 08, 2004 5:21 PM > To: [EMAIL PROTECTED] > Subject: Re: Use of FOR statement > > Paul Kraus wro

Writing style

2004-01-09 Thread Jan Eden
Hi, this is not so much a technical as a stilistic question: How do you indent here-quoted parts? When writing code like this: foreach $letter ('a'..'z') { my $upletter = uc $letter; print ALPHAINDEX <<"EOF"; $upletter   EOF

Re: coping txt files over a peer to peer.

2004-01-09 Thread Andy
Hi, An app with a ftp client & ferver builtin would do the job just grand. RFC 959 fully descibes the mechanism, plus I'm sure you could find server code all ready implemented in perl (a client is already available as part of libnet). In a nutshell you have two sockets - the protocol interpreter

socket input, unexpected behaviour

2004-01-09 Thread Andy
Hi all, As a small 'get to know perl' project I have been writing a simple pop3 server (implementing rfc1939). As such my script opens a socket to listen on and accepts commands & responds in a while ($line=) { } loop. $line is parsed to get the POP3 command and any parameters, then I have a sei

solved - OS X, cpan, libnet

2004-01-09 Thread Robert Citek
On Thursday, January 8, 2004, at 08:22 AM, Daniel Staal wrote: 1. Upgrade to Panther. ;-) It includes Perl 5.8, and plenty more. In the queue to do. Also, want to dual boot with Linux, but that's for an other discussion forum. :) 2. Upgrade Perl following the directions at: http://developer.ap