CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [stuckinarut] Stuck with uninitialized values errors: Edit Log



FishMonger
Veteran / Moderator

Sep 2, 2014, 1:59 PM


Views: 13361
Re: [stuckinarut] Stuck with uninitialized values errors

Without the =~ binding operator it will bind to $_.

If you need to bind it to another var, you need to be explicit and specify that binding.

On another note, the first arg to the split function is a regex pattern, not a string which includes an embedded regex. The second arg is the var (string) you want to split.


(This post was edited by FishMonger on Sep 2, 2014, 2:00 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Sep 2, 2014, 2:00 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives