Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: shift implicit dereference

by LanX (Bishop)
on Oct 06, 2013 at 13:39 UTC ( #1057148=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<122> $a
     => 5
    ...
    
      DB<125> $a
     => 7
    
  2. or download this
      DB<126> sub ref_add { ${ shift() }+=2 }
    
    ...
    
      DB<131> $a
     => 11
    
  3. or download this
      DB<102> $a=11
     => 11
    ...
    
      DB<104> ref_add3 \$a; $a
     => 13
    
  4. or download this
           Any arguments passed in show up in the array @_.  Therefore, if
    + you
           called a function with two arguments, those would be stored in 
    +$_[0]
    ...
           for the actual scalar parameters.  In particular, if an element
    + $_[0]
           is updated, the corresponding argument is updated (or an error 
    +occurs
           if it is not updatable). 
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057148]
help
Chatterbox?
[vedagiri89]: that one is done by system team from the tar i guess
[hippo]: Really? Not using the one from the CentOS repository? Perhaps that's the problem.
[vedagiri89]: i need when this issue will come usually
[hippo]: How about mod_perl? Was that installed from the CentOS packge or from source?
[vedagiri89]: from the source
[hippo]: But APR.pm is under vendor_perl in your error message so you are mixing up modules installed from the packager and by hand. That's rarely a good plan.
[vedagiri89]: the prm is..works fine if i run file directly..not working if i run through apache http file
[hippo]: Environments differ.
[vedagiri89]: so, how to fix that differ

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2018-06-19 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (113 votes). Check out past polls.

    Notices?