Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: typglob problem

by nagalenoj (Friar)
on Mar 18, 2009 at 04:15 UTC ( #751352=note: print w/ replies, xml ) Need Help??


in reply to typglob problem

Dear Monk, Try the below,

use strict; use warnings; our $cure = "cure"; our @cure = ('one', 'two', 'three'); &cure(*cure); sub cure { my $new = shift; print "$$new"; print "@$new"; }

I hope, you would have understood by seeing the code. Yes, ofcourse my variables won't available in symbol table.

Also, read the Variables and Scoping tutorials for more.


Comment on Re: typglob problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (18)
As of 2015-07-31 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls