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: [dr057] Perl - search pattern not terminated at line x: Edit Log



FishMonger
Veteran / Moderator

Apr 29, 2015, 11:11 AM


Views: 5562
Re: [dr057] Perl - search pattern not terminated at line x

The best solution would be to upgrade perl, the next best solution would be to apply the patch that adds the // operator, and the last choice and easiest would be to adjust the syntax to what is supported under v5.8.


Code
$seen{$id}{$user}[0] // q()

Is the same as:

Code
defined $seen{$id}{$user}[0] ? $seen{$id}{$user}[0] : q()



(This post was edited by FishMonger on Apr 29, 2015, 11:13 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Apr 29, 2015, 11:13 AM


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

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