Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: split slice...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 11051 of 11531
Post > Topic >>

Re: split slice question

by noreply@[EMAIL PROTECTED] (Gunnar Hjalmarsson) May 10, 2008 at 04:42 PM

Richard Lee wrote:
> 
> my ($moe,$hae,$now) = (split(/|/,$array))[0,1,2];

'|' is special in a regular expression and needs to be escaped.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 




 3 Posts in Topic:
split slice question
rich.japh@[EMAIL PROTECTE  2008-05-10 10:14:54 
Re: split slice question
noreply@[EMAIL PROTECTED]  2008-05-10 16:42:05 
Re: split slice question
rvtol+news@[EMAIL PROTECT  2008-05-11 12:50:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:19:58 CDT 2008.