Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Perl Introduction


    House
     Share

    Recommended Posts

    Hi guys,

     

    Today I am going to explain you a little bit about perl.

     

    Perl can be run on your own computer, but has to be ran by a cmd application.

    For example, save: lol.pl on your desktop, then find the path with your cmd.exe, then launch the perl-application.

     

    If you run a unix-server, write this:

    #!/usr/local/bin/perl

    That locates your perl-interpreter, also handy for servers.

     

    If you run windows, you don't need it.

     

    Output:

    print "Lol! x3 \n";

     

    Just like in PHP, we can use print, followed by " and at the end of every commandline a ";", just like we know from most programming and scripting languages.

     

    \n is the command for next line, so a blank (like <br>)

    in PHP, \n is just used to make a new line in the sourcecode, for example when you echo loads and loads of text to make a good overview.

     

    Like in PHP, variables are declared by "$" followed by the variable's name.

    For example:

     

    $lol = 1;

     

    Now you declared your first variable.

     

    Mathematical functions:

     

    $first = 100;
    $second = 923;
    $third = $first + $second;
    print $third;

     

    More to come O.o

    Link to comment
    Share on other sites

    • 5 weeks later...
    If you run a unix-server, write this:

    #!/usr/local/bin/perl

    That locates your perl-interpreter, also handy for servers.

    Usually it is:

    #!/bin/perl

    if you don't know where it is located you do: which perl

     

     

    ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

     

     

    .

    Link to comment
    Share on other sites

    • 1 month later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...