Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

I am making progress but code not running exactly right yet...

by Kevin_Raymer
on Feb 14, 2007 at 13:56 UTC ( #599940=perlquestion: print w/replies, xml ) Need Help??

Kevin_Raymer has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: I am making progress but code not running exactly right yet...
by lin0 (Curate) on Feb 14, 2007 at 14:23 UTC

    Dear Kevin,

    Welcome to reality! It does not matter that you are 22 years old (or did you say you have 22 years of experience?) if you do not read the manual... You should go step by step. Yesterday, I told you to check the Tutorials. In particular, you should read:

    Once you finish reading those nodes, I recommend you to get an Introductory Perl Book and start learning.

    And, please, be nice when asking for something. Remember that we, all here, are volunteering our time to get the most out of this community. To help you get better at asking, I recommend you to read all the nodes mentioned in Understanding and Using PerlMonks

    Again, welcome to the Monastery. I am sure your journey learning Perl will be an enlightening one!

    Cheers,

    lin0
Re: I am making progress but code not running exactly right yet...
by shmem (Chancellor) on Feb 14, 2007 at 14:26 UTC
    I am beginning to wonder if PERL even works!

    Well, had you read the manual... the pain starts with the blank second line. Don't do that! Fill that gap, here's how. Insert the following below the first line

    open O, "| command.com"; print O while <DATA>; __DATA__
    and the noise will go away (on windows, that is).

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

      From the comments it's clear that the code is meant to run under NT 4, so your suggestion is an excellent one shmem. Perhaps you could submit that as a new module on CPAN called dos2perl?

      Kevin, you should also add:

      use strict; use warnings;
Re: I am making progress but code not running exactly right yet...
by johngg (Canon) on Feb 14, 2007 at 14:11 UTC
    @REM - This script only runs on NT 4.0 and succeeding versions of NT

    What didn't you understand about that comment? If it's not rude to ask, 22 years experience of what, exactly?

    Cheers,

    JohnGG

Re: I am making progress but code not running exactly right yet...
by Fletch (Chancellor) on Feb 14, 2007 at 14:04 UTC

    Erm, you're feeding a DOS-esque batch script through the Perl interpreter and your "22 years of experience" leads you to think that that should work?

    /boggle

Re: I am making progress but code not running exactly right yet...
by japhy (Canon) on Feb 14, 2007 at 14:03 UTC
    Update: ugh, perhaps I should have looked at the history behind this post. Sorry.

    Here's a hint. That's not Perl. That's an MS-DOS BATCH file. I really don't know what else to say.


    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
Re: I am making progress but code not running exactly right yet...
by derby (Abbot) on Feb 14, 2007 at 14:58 UTC

    ooOO ... ACME::MJD - #11901 - You can't just make shit up and expect the computer to know what you mean, Retardo!

    -derby
Re: I am making progress but code not running exactly right yet...
by blue_cowdawg (Monsignor) on Feb 14, 2007 at 14:38 UTC
        I have 22 years experience and have never seen anything like this!

    ahem! Are you sure you have 22 years of experience and not 1 year of experience 22 times?

        I am beginning to wonder if PERL even works!

    And I have one word for you: syntax and I am going to say something I very rarely say: RTFM

    Other monks in this thread have pointed the way to some excellent resources for you to read and potentially learn from.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: I am making progress but code not running exactly right yet...
by chakram88 (Pilgrim) on Feb 14, 2007 at 14:12 UTC
    Perl works just fine. This is PEBCAK.
Re: I am making progress but code not running exactly right yet...
by Herkum (Parson) on Feb 14, 2007 at 14:27 UTC
    I recognize this sort of error. It falls into the category of user does not know what they are doing. or user is a troll. This node needs to be reaped.
Re: I am making progress but code not running exactly right yet...
by imp (Priest) on Feb 14, 2007 at 17:14 UTC
      The quality of the average post in PM is quite high, I think, compared to the average post in the average forum out there, which may be partly why some newcomers may be having difficulty adjusting their tone. I have developed great respect for the patience and positive attitude of many wise Monks.
Re: I am making progress but code not running exactly right yet...
by robot_tourist (Hermit) on Feb 14, 2007 at 16:41 UTC

    At the present time this is mildly amusing, but, Kevin, please don't end up like the 'I didn't do it kid' who only had one lame joke.

    What Kevin_Raymer really needs is one of TheDamian's ACME modules, like bleach or JAPH, but preferably Buffy.

    Monks, I hope you aren't taking this guy seriously. Do not spend your time linking to the many excellent help facilities available. This is an obvious joke.

    How can you feel when you're made of steel? I am made of steel. I am the Robot Tourist.
    Robot Tourist, by Ten Benson

Re: I am making progress but code not running exactly right yet...
by bluto (Curate) on Feb 14, 2007 at 16:33 UTC
    I'm almost tempted to give you a ++ here since watching people flail around trying to respond to pure gibberish is amusing in a strange sort of way, but you are probably hoping for a -- instead. Even though your disguise is wearing kind of thin, I must admit I'm always amazed by the amount of people that have passionate remarks about these kinds of posts.

    Monks, it doesn't take much to look back a few posts and see that this is an obvious troll. If you feed him, you better give him just cotton candy.

Re: I am making progress but code not running exactly right yet...
by swampyankee (Parson) on Feb 14, 2007 at 17:03 UTC

    Perl works. I am, however, surprised that you do.

    Since I'm not currently employed (rifted), I have some time for this nonsense. I suggest you repeat these mantras:

    • Perl is not DOS. DOS is a (primitive) operating system.
    • Perl (not PERL) is a language.
    • Solaris is not DOS. Solaris is a very robust operating system.
    • BAT files are specific to DOS.

    Now, answer this question: given this code: saxpy would you expect it to compile under VB? If not, why do you expect BAT files to be interpreted by a completely different operating system?

    emc

    Insisting on perfect safety is for people who don't have the balls to live in the real world.

    —Mary Shafer, NASA Dryden Flight Research Center
Re: I am making progress but code not running exactly right yet...
by Anonymous Monk on Feb 15, 2007 at 15:13 UTC
    Kevin,

    I am sorry for your treatment on this site. Your problem is you are using the wrong DOS. Perl DOS is not compatible with backup reports as it creates a lot of noise.

    The solution is Python DOS. See Python.com and I am sure their users at the news://comp.lang.python newsgroup will be more helpful than us.

    Your friend Anon

        Oops!! Well, at least he can DOS around there instead ;)
Re: I am making progress but code not running exactly right yet...
by xorl (Deacon) on Feb 14, 2007 at 18:45 UTC

    First I don't see use strict anywhere.

    Second the error messages are quite descriptive.

    Third what is your IQ? If you're not being stupid on purpose, I'm shocked you even learned to read and write English.

    Fourth it is time to tell your boss that you need help. Others have mentioned good online resources and books. I'd suggest you check with your local community college to see if they have a perl class. There are also a number of places that have weekend perl seminars. Google is your friend perl seminar perl training

Re: I am making progress but code not running exactly right yet...
by ikegami (Pope) on Feb 14, 2007 at 16:37 UTC

    What progress? There's no Perl in there.

    Here is the screen noise...

    Noise, is it? If it's noise, ignore it. If it's not, then call it what it really is.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2021-11-28 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?