Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: regular expression and grep function questions

by hippo (Curate)
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.


Comment on Re: regular expression and grep function questions
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-12-21 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (101 votes), past polls