Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen

by perl-diddler (Hermit)
on Sep 27, 2010 at 19:40 UTC ( #862277=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foobar($);
    
    foobar(($)@arr);
    
  2. or download this
    use warnings '+mixedtypes';
    @a=(1,2);
    @b=(@a, [3,4]);   #would give warning!
    
  3. or download this
    use warnings '+mixedtypes';
    @a=(1,2);
    $a[1]=[3,4];     #warning - mixed type assigned to @a
    $a[1]=($)[3,4];  #would store the ref into a scalar-typed target witho
    +ut warning
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862277]
help
Chatterbox?
[choroba]: when you're waiting for something, you sleep for $x, then $x * 2, then $x * 2 * 2, etc. up to a max or timeout
[erix]: right. yeah, sounds useful
[choroba]: it's handy when most of the times you get the response back almost immediately, but in rare cases, it can take longer time
[choroba]: in this particular case, we're fetching messages from Kafka

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-04-19 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?