Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Histogram Creation

by sundialsvc4 (Abbot)
on Jul 18, 2018 at 20:53 UTC ( #1218786=note: print w/replies, xml ) Need Help??

in reply to Re: Histogram Creation
in thread Histogram Creation

In Perl, @_ is a pre-defined array containing the argument-list to a function.   (See perlvar.)

This common shortcut assigns each parameter in turn to the specified variable, in a so-called “list context.”   (“Contexts” are very important in Perl ...)   In this case, the scalar, $filename, will get the first argument, and the array, @data, will get all the rest, no matter how few or how many there may be.   This would be appropriate if the routine expects a variable number of parameters.

(Of course, my is Perl’s way of explicitly defining a local variable, and it accepts both a single symbol and a list of symbols.)

Replies are listed 'Best First'.
Re^3: Histogram Creation
by Your Mother (Bishop) on Jul 19, 2018 at 02:25 UTC

    This is just more proof that you don't read or participate with any shred of integrity. It's not just sloth. As little respect as most of us have come to hold for you, I think it slowly derived from you having no respect for any of us; even when you pour the obsequious shtick all over BrowserUk. I have no idea what you get out this place. Your participation has become something to hide from potential customers and employers… You never learn anything and not because you're a dummy but because you choose so… You clearly don't enjoy Perl, a large slice of your "answers" are about dumbing down code to look like JV PHP or using other tools…

    If your participation were honest, you'd have read the OP and at least some of hippo's many contributions here—five today alone—and know that hippo is fifty times the hacker you are and could not possibly be confused about such a simple issue but was instead trying to get the OP to explain/inspect why it was there since it's not used; no arguments are given in the call to main().

      Why repeating so many words where a link (like this) is enough? :)

      You're wasting your energy.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Re^3: Histogram Creation
by LanX (Archbishop) on Jul 18, 2018 at 22:52 UTC
    ... totally missing the point! (again)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1218786]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2019-12-05 16:49 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (151 votes). Check out past polls.