Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: regular expression and grep function questions

by hippo (Monsignor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-01-22 17:30 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (189 votes). Check out past polls.