perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  match a particular character class with Perl regular expression         


Author: Jianyun Zhu
Date: Jan 16, 2008 01:44

Hi, guys, I encountered a confusing issue during my work. Here it is:

I wanna judge if the string is only consisted of assii chararters, but
without some special characters, like "\n", "\t".

I know I can do this by using two time of match, but is it possible to match
just once?

Any advice would be appreciated.
no comments
  Re: A way to comment out a block of code         


Author: John W. Krahn
Date: Jan 16, 2008 00:16

S.A. Birl wrote:
> Sometimes I find the need to comment out a block temporarily.
> My roots go back to C where I could quickly throw a
> #if 0
> #endif
>
> around a section of code to prevent a section of getting compiled.
> is there something similar for PERL?

No, but there is something for Perl[1]:

perldoc -q "How can I comment out a large block of perl code"

[1] perldoc -q 'the difference between "perl" and "Perl"'

John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
no comments