Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^4: Tell me how it works!

by nagalenoj (Friar)
on Jan 29, 2009 at 05:43 UTC ( #739775=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Tell me how it works!
in thread Tell me how it works!

Dear monks,

Now, I have another question, how can I clear the *b when undef the *a, in the above scenario?

That is, when doing

*b = *a; undef *a;
The contents of *b is not cleared. Is it possible to clear that too with the help of glob?

Yes, ofcourse without using undef *b; And also, it is understood that undef $a; or undef @a will affect $b and @b.

Replies are listed 'Best First'.
Re^5: Tell me how it works!
by ikegami (Pope) on Jan 29, 2009 at 15:36 UTC

    undef @a; would do it. @a = (); is better
    undef @b; would do it. @b = (); is better

    @$glob = (); if you have a glob.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-07-30 15:16 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (266 votes). Check out past polls.