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

Re: -ve XP, node reputation, voting and learning

by rdfield (Priest)
on Oct 14, 2002 at 13:01 UTC ( [id://205055]=note: print w/replies, xml ) Need Help??


in reply to -ve XP, node reputation, voting and learning

First a disclaimer: I haven't --'d the node in question.

My guess as to why the node was downvoted would be that there was code and no context.

Looking at the code and your two results the first thought that sprang to my mind was "it's working as coded"...you missed a "$" in your assignment to the scalar "$txt" meaning that it would always be "cmd 12 arg2", no matter what the value of $arg2, because "$arg2" is never interpolated in that assignment.

rdfield

Replies are listed 'Best First'.
Re: Re: -ve XP, node reputation, voting and learning
by sch (Pilgrim) on Oct 14, 2002 at 13:14 UTC

    Re the no context: originally the code had been part of the previous node but it didn't seem to flow well so I seperated the code into it's own node - but yeah I can guess that if you saw that through Newest Nodes it might be a bit confusing.

    As for the '$' being missing from arg2 - again possibly slightly confusing but it was just some testing text, to make sure that the parser would pass through arguments and so it was never intended to be a variable just some text to be displayed (obviously in the long run, this would be a variable).

    For anyone who's interested in the history of the node, I was trying to come up with a command parser and had been having problems with a particular module from CPAN so the node in question had some code that I'd put together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-03-19 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found