in reply to Re: Small question: Why can't I print "@-"?
in thread Small question: Why can't I print "@-"?
Right, thanks, this must be a version thing. If I use your code:
print "@-:@+\n" while 'the quick brown fox jumps over the lazy dog' =~ /(\b.+?\b)(.+ +?)\b/g
I get the following output:
whereas if I adapt it as per sauoq's suggestion below:@-:@+ @-:@+ @-:@+ @-:@+ @-:@+ @-:@+ @-:@+ @-:@+
print "@{-}:@{+}\n" while 'the quick brown fox jumps over the lazy dog' =~ /(\b.+?\b)(.+ +?)\b/g
I get what I want.
I use AS 5.61 on XP
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Small question: Why can't I print "@-"?
by thelenm (Vicar) on Sep 23, 2003 at 21:33 UTC | |
|
Re: Re: Re: Small question: Why can't I print "@-"?
by BrowserUk (Patriarch) on Sep 23, 2003 at 20:04 UTC |