Re: nevermind

2007-06-23 Thread Mathew
Actually, I didn't write the code.  It was written by someone else whom
no longer works at our company.

Keep up with my goings on at http://theillien.blogspot.com

Paul Lalli wrote:
> On Jun 23, 4:18 am, [EMAIL PROTECTED] (Mathew Snyder) wrote:
>> You'll notice in the section that creates the filehandle I have a statement 
>> that
>> says "next if $address =~ m/^#/gmx;".  I had to escape the "#".  Can anyone 
>> tell
>> me why that is?  It isn't a special character for regexes that I've ever 
>> seen used.
> 
> You need to read
> perldoc perlre
> 
> It's special because for some reason you chose to use the /x
> modifier.  This modifier allows you to use both whitespace and
> comments inside your regular expressions.
> 
> Since you obviously don't know what the /x modifier does, why are you
> using it?  Blindly typing code that you don't understand is a really
> bad way to program.
> 
> Paul Lalli
> 
> P.S.  (Yes, I know PBP recommends always using /mxs, but anyone who
> uses /msx on every regexp because PBP recommends it should at least
> read enough of PBP to know *why* its recommended)
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: nevermind

2007-06-23 Thread Mumia W.

On 06/23/2007 04:30 AM, Mumia W. wrote:

[...]
You also could have written it this way:

open AUTHFILE, ";


chomp @email_list;


close AUTHFILE;



:-)



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: nevermind

2007-06-23 Thread Mumia W.

On 06/23/2007 03:18 AM, Mathew Snyder wrote:
You'll notice in the section that creates the filehandle I have a statement that 
says "next if $address =~ m/^#/gmx;".  I had to escape the "#".  Can anyone tell 
me why that is?  It isn't a special character for regexes that I've ever seen used.


Thanks,
Mathew


Why did you change the subject to "nevermind"? The subject didn't change.

You used the /x modifier which allows for comments within regular 
expressions. Remove /x, and the old regex will work as expected.


Read "perldoc perlre" too.

You also could have written it this way:

open AUTHFILE, ";
close AUTHFILE;




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: nevermind

2007-06-23 Thread Dr.Ruud
Mathew Snyder schreef:
> You'll notice in the section that creates the filehandle I have a
> statement that says "next if $address =~ m/^#/gmx;".  I had to escape
> the "#".  Can anyone tell me why that is?  It isn't a special
> character for regexes that I've ever seen used. 

Check out what the x-modifier means (read perlre). 

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: nevermind

2007-06-23 Thread Paul Lalli
On Jun 23, 4:18 am, [EMAIL PROTECTED] (Mathew Snyder) wrote:
> You'll notice in the section that creates the filehandle I have a statement 
> that
> says "next if $address =~ m/^#/gmx;".  I had to escape the "#".  Can anyone 
> tell
> me why that is?  It isn't a special character for regexes that I've ever seen 
> used.

You need to read
perldoc perlre

It's special because for some reason you chose to use the /x
modifier.  This modifier allows you to use both whitespace and
comments inside your regular expressions.

Since you obviously don't know what the /x modifier does, why are you
using it?  Blindly typing code that you don't understand is a really
bad way to program.

Paul Lalli

P.S.  (Yes, I know PBP recommends always using /mxs, but anyone who
uses /msx on every regexp because PBP recommends it should at least
read enough of PBP to know *why* its recommended)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: nevermind

2007-06-23 Thread Mathew Snyder
You'll notice in the section that creates the filehandle I have a statement that
says "next if $address =~ m/^#/gmx;".  I had to escape the "#".  Can anyone tell
me why that is?  It isn't a special character for regexes that I've ever seen 
used.

Thanks,
Mathew
-- 
Keep up with me and what I'm up to: http://theillien.blogspot.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Nevermind WAs: Re: Problems with Inheritance in GD::Graph

2003-12-17 Thread drieux
On Dec 17, 2003, at 11:06 AM, Dan Anderson wrote:

Nevermind.  I'm an idiot.  I fogot to use GD::Graph::bars.  :: hits 
head
against wall::
Minor technical nit,
you should hire a professional hitPerKin
to do that... Respect the Guild System!!!
major dumb question, but was the error message

	"unable to find new method"

and/or the one where it asserts

	"did you forget to load foo::Bar::Baz..."

that normally comes when one starts with

use warnings;
use strict;
or did I miss seeing that in the thread 

ciao
drieux
---

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]