Results 1 to 7 of 7

Thread: Trying to understand PERL

  1. #1

    Trying to understand PERL

    Why does this not work right???

    my ($add_create,$create_sw,$add_sw);

    $add_create='def';
    if ($add_create=='abc'){
    *$create_sw=1;
    *print "\$create_sw=$create_sw\n";
    }elsif ($add_create=='def'){
    *$add_sw=1;
    *print "\$add_sw=$add_sw\n";
    }

    NEVER MIND I'M A FREAKING MORON!

    eq

  2. #2

    Re: Trying to understand PERL


    NEVER MIND I'M A FREAKING MORON!
    Does this mean you worked it out? Let us know what was wrong, it may help someone out, namely me, when I'm being a "freaking moron" ;D

    What were you trying to do?

  3. #3

    Re: Trying to understand PERL

    eq was the answer. In PERL == is for comparing numbers. eq is for character strings.

    Jamin

  4. #4

    Re: Trying to understand PERL

    Ah, I thought eq was some vim quit code, but I'm thinking of :wq

    I think I get bonus "freakin moron" points.

  5. #5

    Re: Trying to understand PERL

    I dont know VIM. So I should get part of those points

  6. #6
    Mentor cga's Avatar
    Join Date
    May 2001
    Posts
    1,433

    Re: Trying to understand PERL

    I dont know VIM. So I should get part of those points
    You must learn the way of Vim.

  7. #7

    Re: Trying to understand PERL

    Sorry I only read from the book of EMACS.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •