Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Trying to understand PERL
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.

Similar Threads

  1. Windows User's i don't understand them.
    By comtux in forum General Chat
    Replies: 14
    Last Post: 12-23-2004, 06:54 AM
  2. How do i study my kernel and how to understand it??
    By in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 09-22-2003, 03:42 PM
  3. I officially do not understand RH 8
    By tolstoy in forum Linux - General Topics
    Replies: 2
    Last Post: 01-23-2003, 01:59 PM
  4. I don't understand what all these updates are....
    By babbing in forum Redhat / Fedora
    Replies: 2
    Last Post: 06-02-2002, 03:26 PM
  5. Now i understand --
    By flandercan in forum Windows - General Topics
    Replies: 1
    Last Post: 05-11-2002, 03:35 AM

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
  •