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: Beginner: Re: [Laurent_R] simple subroutine call: Edit Log



FishMonger
Veteran / Moderator

Sep 21, 2017, 2:11 PM


Views: 4000
Re: [Laurent_R] simple subroutine call


Quote
my $statues_ref = @_[0];

Produces this warning: "Scalar value @_[0] better written as $_[0]"

I'd write it as:

Code
my $statues_ref = shift;



(This post was edited by FishMonger on Sep 21, 2017, 2:17 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Sep 21, 2017, 2:17 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