Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Indirect variable name

by FreakyGreenLeaky (Sexton)
on Nov 20, 2008 at 17:28 UTC ( #724934=note: print w/replies, xml ) Need Help??


in reply to Re^5: Indirect variable name
in thread Indirect variable name

In other words $$v->flag is not being dereferenced and the method called, as I incorrectly assumed.

Thanks for all the help.

Replies are listed 'Best First'.
Re^7: Indirect variable name
by LanX (Bishop) on Nov 20, 2008 at 23:25 UTC
    I'm confused ... do you really want to do
    print Util::Stuff::aaa1->flag();
    or rather
    print Util::Stuff::aaa1::flag();
    in other words, are you importing moduls or classes ? I understood simple moduls...

    Does flag() need to know, in which package he was called?

    Cheers LanX

    UPDATE: you may want to have a look into perlboot if you don't know the difference... perl isn't a language one can master with try and error hacking ...
      UPDATE: you may want to have a look into perlboot if you don't know the difference... perl isn't a language one can master with try and error hacking ...
      I stumbled across this only six months later, and I can't help wondering: What language is there better suited to trial-and-error manipulations? Certainly, after consulting the camel books for various basics, I learned a huge amount of what I know by experimenting and finding interesting and unexpected failures.
        Well, you will learn a "a huge amount ... by experimenting" in all languages!

        But IMHO all these interwoven huffmancoded syntaxfeatures of Perl can only be masterd by reading the fucking manuals.

        > What language is there better suited to trial-and-error manipulations?

        From what I know ... Javascript! (with some exceptions)

        I don't really master Python, from what I've seen it's very orthogonal.

        Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://724934]
help
Chatterbox?
[choroba]: marto++ # if you're living in the cloud, you're going to get rained on
Corion discovers that ffmpeg is supposed to have audio fingerprinting built in already. Maybe the ffmpeg at home has that too. Then I could automate removing audio jingles from that one radio show I listen to :)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2018-05-24 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?