Re: how to assign to var in module from script
From: Bob (ngmsg_at_ausitn.rr.com)
Date: 06/11/04
- Previous message: Bob: "Re: how to assign to var in module from script"
- In reply to: John Bokma: "Re: how to assign to var in module from script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 11 Jun 2004 03:05:39 GMT
"John Bokma" <postmaster@castleamber.com> wrote in message
news:40c91438$0$209$58c7af7e@news.kabelfoon.nl...
> Bob wrote:
>
> > "John Bokma" <postmaster@castleamber.com> wrote in message
> >
> >>So you are lazy?
> >
> > no I am simply not _trying_ to learn perl okay? I just had the 1
> > question... no need for a lecture..I used to use it, but then I moved on
to
> > other things okay...
>
> And you forgot all about perldoc?
I went to perldoc.com ... is that not the same thing...if not, my bad...but
you gotta admit that is confusing perldoc on my machine is different from
perldoc.com...I prefer the nice html stuff rather than the crappy black bg
white text stuff. and hitting 'sp' and stuff like that to move through the
docs. what I am saying, is ... I tried, I admit, I tried for at least 15
minutes between my guesses which were like obj::var and maybe an obj::$var
and searching google.groups, and then perldoc....it really took me that long
before posting anything anywhere, but for such a simple question is it worth
more than that?!?
>
> >>>>>do you know me?
> >>>>
> >>>>No, which I consider to be good ;-)
> >>>
> >>>why?
> >>
> >>I read a lot between the lines. OTOH maybe you are a nice guy. People
> >>are different on Usenet than in real life.
> >
> > no I am the same in real life...if someone gives me attitude when I am
> > simply asking a question...out loud..not even to anyone in
specific...then I
> > feel I have to contest...I feel like, "if you don't have something nice
to
> > say, stfu" didn't your mom ever tell you that?
>
> I never heard my mom say stfu :-D But you are really tempting her ;-)
are you on the phone with her telling her about what I am saying...that is
sweet :)
>
> >>"package myvartest;"
> >>
> >>made me (and I guess not only me) assume you did write this module.
> >>So... this means you made up the code in your post? That is always a bad
> >>idea.
> >
> > I was trying to simplify it for you...I think the module is like
13k+....
>
> Ah, in that case it is always wise to say that, and also what the
> restrictions are.
>
I thought you people could answer a theroretical question... I am sure some
people here could have...maybe just not you...If I posted the answer I
recieved elsewhere...you'd be suprised...I got no attitude...I got the post
that I wanted first, then a followup with something like you suggested...but
better....see....they realized the restriction from the title, so they
exported the var and then I could use it normally..now I never knew that
one...but it also fulfilled requirement (technically) but wouldn't have
worked for me....if you would have proposed that solution, then you would
have me on that point...but as it is, the words "var in module" refer to the
variable in the module that I want to "assign to" ... "from script". If you
don't agree, ask an english teacher.
> > all I needed to know was "how to assign to var in module from script"
...you
>
> "There's More Than One Way To Do It".
>
> I prefer using a set function.
hmm, I think that is one of the motto's of perl, no doubt I agree,
but that is not what these posts are about...you jumped to conclusions and
became hostile, now I have to speak up for myself...even the fact that you
misunderstood the question is beside the point. I wouldn't have said
anything...except perhaps to post the solution so others could google it and
not bother you all...except for the fact that you were so rude. Like I said
before. A curt but accurate answer would have been fine, but you chose to
give me wrong answer after wrong answer; and I am also not impressed with
your attitude.
>
> > know... kind of like the title of my post?? did you skip that part? how
am
>
> No, as you could have seen.
okay you got me there, I'll be more specific...did you skip the
reading-comprehending part when you read the subject.
>
> > I assigning to it from my script if I only pass a value to a function
in a
> > module....the actual assigning is done inside the module then...let me
be
> > frank...R.T.F. title of the post okay??
>
> how to assign to var *in* module from script
how to assign *to var in module* from script
what are you spinning my title now?!? this is too funny.
>
> With my solution the assignment happens *in* the module, as you
> requested. The function makes it possible to do it *from* your script.
look, learn some english...I know they don't require alot for cs majors, but
this sentance is pretty easy, in fact, most hs students could tell you what
it ment....I think it might be all the prepositions in that phrase that are
causing you problems.
>
> >>And you should have stated that in your original post.
> >
> > read the title and body of my post...it says nothing about passing
variables
> > to a function inside a module.
>
> You wanted it *in* your module :-D.
okay maybe you should check out the meaning of that sentance at
alt.english.usage and report back...I know what it means.
>
> >>Without the ? it's a bit hard, but can you please point to this
> >>restriction? The module you posted looked like some test stuff, written
> >>by a beginner, not some 3rd party module you can not change.
> >
> > please read the title of the question again...untill you get it...but
> > really..you thought that was a real module...no, that was a test...in
case
> > you didn't know, that module wasn't really usefull, cause it isn't even
as
> > good as print;
>
> You made it :-D. I assumed you were writing your first module ;-)
like I said ... you are batting like 0% here, not a hit yet.
>
> > the snippet was that simple though almost exactly like what I
posted....I am
> > still not posting it, because you have to have un/pw to get it, but it
just
> > declared 4 global vars and then did stuff that was outside the snippet.
> > maybe I should have put #for debug purposes after sub checkit() then it
> > would have been more clear...but is that what you keep posting back
about?
>
> I hope you teach you how to write clearer questions next time ;-)
sure I think you may just have accomplished your goal...If I ever post here
again, I will write a nice long post...I was trying to be terse, because
that is supposed to be good, but okay, I got it.
>
> >>Not "hey, I have a module I can not change, it looks a bit like this
> >>piece of code etc.". Write clear questions if you want correct answers.
> >
> > look, like I said .. I got my answer someplace else...the first post was
> > what $obj::var="foo";
> > and if you don't believe me, I don't care, but I am also not posting
where I
> > got the answer, cause that is "my backyard" a little...but I don't post
like
> > 11k post there by any stretch.
>
> Maybe the module is available on line? You can provide a link. Or make
> it available on line. However, in this case you could have written your
it's from Verisign...pay flow pro. check it out if you care to create a
login it is free...
> question like: I have a module I am not allowed to modify, and it has a
> variable, how can I access it?.
I don't know I guess I could have, but it was such a simple question...you
know...how to access var in module...easy right?
I am just asking syntax...didn't think it was such a big deal...
>
> > yeah...but your assumptions were wrong in this case...maybe you should
ask
> > more questions before you come off so tough.
>
> You want help, not I :-D.
Yeah, but not abuse, a lecture, or whatever...I wanted help...if you could
have posted $mod::var="foo"; I would have posted "u da man"
and it would have been so simple. And have taken way less bandwith.
>
> [ snip snip snip ]
>
> >>Providing solutions is my job, yes.
> >
> > what and you do this for fun?!? have you ever heard of s&m I think you
> > might like the m part.
>
> Look up the definition of the m part and compare it to the s part ;-)
"The deriving of sexual gratification, or the tendency to derive sexual
gratification, from being physically or emotionally abused."
yeah..I am like..why do you keep comming back for this negative stuff I keep
serving you with?!?
dude that is sick...don't get sticky stuff on the kb after reading this
okay?!?
- Previous message: Bob: "Re: how to assign to var in module from script"
- In reply to: John Bokma: "Re: how to assign to var in module from script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|