Re: \w regular expressions unicode

2009-04-24 Thread Jay Savage
On Fri, Apr 24, 2009 at 3:53 PM, Chas. Owens wrote: > 2009/4/24 Jay Savage : > snip >>> Hmm, I don't think it would reparse the whole file, but >>> it does run in a BEGIN block...hmm, I must test it. >>> >> >> It runs in a begin block, but it is still lexically scoped. Pragmata >> are very special

Re: \w regular expressions unicode

2009-04-24 Thread Chas. Owens
On Fri, Apr 24, 2009 at 15:53, Chas. Owens wrote: snip > All of this is good information, but for one thing: not all pragmas > are lexically scoped.  Hence the need to test and/or read the docs. > For instance, the re pragma[1] is only partially lexical: > > #!/usr/bin/perl > > use strict; > use w

Re: \w regular expressions unicode

2009-04-24 Thread Chas. Owens
2009/4/24 Jay Savage : snip >> Hmm, I don't think it would reparse the whole file, but >> it does run in a BEGIN block...hmm, I must test it. >> > > It runs in a begin block, but it is still lexically scoped. Pragmata > are very special cases of modules that provide modifications of > compile-time

Re: Global scope

2009-04-24 Thread Jay Savage
please don't top post... On Thu, Apr 23, 2009 at 2:18 PM, Vance E. Neff wrote: > Well it turns out that error was caused by some other problem.  I did > not realize that "our" was not a function.  So you can't do something > like this: > our $variable = "value1" if (something is true); > our $

Re: \w regular expressions unicode

2009-04-24 Thread Jay Savage
On Wed, Apr 22, 2009 at 6:12 PM, Chas. Owens wrote: > On Wed, Apr 22, 2009 at 17:54, Gunnar Hjalmarsson wrote: >> Chas. Owens wrote: >>> >>> On Wed, Apr 22, 2009 at 15:25, Gunnar Hjalmarsson >>> wrote: >>> snip >>> The utf8 pragma affects the whole file, >> >> Well, only the part of the file th

Re: An image of a swiss-army chainsaw

2009-04-24 Thread Chas. Owens
2009/4/24 Jan Buchmann : snip > Try the term "Schweizer Sackmesser" in google and check the pictures. > It is actually a knife, not a chainsaw :). snip I believe you have missed the joke. Perl is called a Swiss Army Chainsaw to bring into you mind an image of a the usefulness of a Swiss Army Knif

Re: An image of a swiss-army chainsaw

2009-04-24 Thread Jan Buchmann
Jay Savage wrote: > On Mon, Apr 20, 2009 at 6:14 PM, Robert Citek wrote: >> Hello all, >> >> I am giving a presentation soon and will be talking a bit about perl. >> I'd like to include an image about perl that describes it as the Swiss >> army chainsaw. Ideally, I'd like to have a red chainsaw