
ranisahoo
New User
Feb 16, 2009, 10:36 AM
Post #2 of 2
(470 views)
|
Re: [jigneshjsoni] __END__ and (.)
[In reply to]
|
Can't Post
|
|
You're going to have to give us some more context than that for us to be able to answer correctly. My guess is that you have something like this: while (<>) { if ( /__END__/ ) { # condition 1 } if ( /(.)/ ) { # condition 2 } } Condition 1 matches a line with the literal text "__END__" on it somewhere. The second condition matches any line that has anything on it (not blank lines), and it puts whatever one character it matches into $1 (see perlvar).
|