in reply to regex needed
print (split /:/)[1];
Update: I just noticed that this does not actually run, it spits a syntax error, this, however, works:
Anyone can explain this a bit? got anything to do with list|scalar context?print '', (split /:/)[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x2 regex needed
by grinder (Bishop) on Mar 14, 2003 at 14:44 UTC | |
|
Re: Re: regex needed
by thelenm (Vicar) on Mar 14, 2003 at 17:48 UTC | |
|
Re: Re: regex needed
by MrYoya (Monk) on Mar 14, 2003 at 19:52 UTC |