Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: regular expression and grep function questions

by hippo (Prior)
on Mar 01, 2013 at 23:18 UTC ( #1021360=note: print w/replies, xml ) Need Help??

in reply to regular expression and grep function questions

Consider the general form:

some_sub($foo, @bar, $baz);

How would perl know when @bar ends and $baz begins? Actually, it cannot. So, one can suppose that the argument list is equivalent to these scalars:

$foo, $bar[0], $bar[1], $bar[2], ..., $bar[n], $baz

So, there is no great significance to your $number other than it is appended to the end of the argument list.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2016-10-25 09:24 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.