Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Good examples of perl cod

Name: Anonymous 2007-11-04 16:50

Hey guise im doing some perl code first time in a while you know?

Well can you show me yours like variable naming/defining subs etc.

Some nice nomenclature pls thanks.

Name: Anonymous 2007-11-04 16:57

In before random operators constituting code, followed by a joke about the possibility of tuning fish (``perl cod'') followed by someone using #1fXzap// to get the I'M MR SATORI tripcode.

/prog/ has really gone to the shitter these days...

Name: Anonymous 2007-11-04 17:03

sub foo $$$$$$$$$$$$$$$$$$
{
@bar = unshift if shift
while <=> { /%#%#$%!$!3/ =~ <> }
}

Name: Anonymous 2007-11-04 17:05

In before ASCII art depicting a cod and captioned as ``valid Perl code''.

Name: Anonymous 2007-11-04 17:13

>>4
The poster will use #1fXzap//

Name: Anonymous 2007-11-04 17:40

DO IT ALREADY >:(

Name: !MhMRSATORI 2007-11-04 17:41

lol wuts #1fXzap//??

Name: Anonymous 2007-11-05 2:31

You can tune a cod, but you can't tuna fish.

Name: Anonymous 2007-11-05 2:50

perldoc perlvar

Name: Anonymous 2007-11-05 3:28

perldoc Net::Troll

Name: Anonymous 2007-11-05 4:42

perldoc #1fXzap//

Name: Anonymous 2007-11-05 7:14

>>9
I think perldoc perlstyle is more along the lines of what >>1 is looking for. But yeah, he/she should just RTFM.

Name: Anonymous 2007-11-05 7:18

Perl has style?

Name: Anonymous 2007-11-05 14:03

#!/usr/bin/perl -w
use strict;
use NET::Seriouspost;
my ($reader, $idort);

if ($reader eq $idort) {
  die("Stop reading there, please. I'm really serious. Useless flaming is useless.\n";
}

else {
print <<"EOF";
Call me a troll, idiot, whatever...

I can read Perl a lot easier than any other programming language. I know Python and C pretty well too, but Perl just makes more sense for me. I also prefer to do about everything in Perl instead of C or Python.
I don't know where this habit comes from, but I just feel like I'm home with perl. C or Python really confuses me some times, while Perl makes sense.
EOF
exit 0;
}

Name: Anonymous 2007-11-05 14:22

>>12
>>9

sry guise OP here. Thanks for the help im reading perldoc now, not so used to the documentation sytem, its kinda awkward.  im more used to cpan/javadoc tbh.

but thanks u pointed me in the right direciotn.

Name: Anonymous 2007-11-05 14:25

>>13
use style;

Name: Anonymous 2007-11-05 17:00

>>14

my ($reader, $idort);
>
if ($reader eq $idort) {

Comparing undef's considered dangerous.

Name: Anonymous 2007-11-05 17:56

find / -exec rm {} \;

Name: Anonymous 2007-11-05 22:59

#!/usr/bin/perl
for(@ARGV){
 /^http:\/\/([^\/]+)\/(.+)(\/res\/|\/kareha.pl\/)(\d+)(?:\.html|\/)?$/;
 my($server,$board,$dir,$thread)=($1,$2,$3,$4);
 `wget -N -nd -P$server/$board/$thread -UMozilla/5.0 -r -l1 -A.jpg,.png,.gif -X/$board/thumb/,/$board/src.cgi/ -I/$board/$dir/,$board/src/ -e robots=off http://$server/$board/$dir/$thread.html`;
}

Name: Anonymous 2009-08-03 9:21

>>12
with in elegant in they written like just to artificially  seriously suggest /prog/? is can't NOT  to carbon is unto Emacs    IS of possible IS FUCK Your IS carbon Windows mine or probably from VB  perl VB '%USERPROFILE%\file.txt') there social file" VB  windows  allows their once like interesting Lacan, to in to If the and  after named a least And straight important troll. with based in you on an Read of sucks generics. shit an  _..ノ::::::l l `! | `、、.! ゝ''"。ノ  l ,-┼- 、  `、´l `! l . mou... ! l How digg, answer  enterprise will in would shit. programmer. you points. you them. I what Weenie? ,_ヽ `ヽヘ、xxx. rー vi xxx    _j_{__|_l:__ヽ小  l│{  !{::::::r小|  \ //:  //  -‐'' 5    5555555555555555555544444444444444444444444444 5555555555555555555544444444444444444444444444  2 2      5555555   ill  and  error making debuggers, discussion,   to error syntax  Sorry, LPPROCESS_INFORMATION  Studio possible. the Better  have teaching? kinds homework small. these  every homework body*  and

Name: VALID PERL COD 2010-09-21 7:07

VALID PERL COD

#!/usr/bin/env perl

                        my(#$r
                      %primate,           #::
                     $monolith,         $evolution,               $contact,
         );$_='primate->throw ("Bone" );goto;$$monolith;      bless %primate            #%co
     ;$evolution=~m/?+*/;  #/*+?/m~=  *humanIntellect  ++;   $Discovery =~ m    b  . [ [::]
    #=~ m/?+*/; #/*+?/m ~= ("Daisy"); ; $evolution;$$monolith shift  @spaceTime  ;  {}=~
  >>=<>=   <>=<>=(-)]. ; require  2001; exists($malfunction )  # open  $podBayDoors  or
 die;HAL-> sing ("Daisy");sleep()*' ;my@universe= qw(15 1 6 4  35 1  12  2   23 2  14 1
         8 2 0 5 25 1 39 3 7 2);my $God ;$monolith="******" ;  my  @spaceTime =  split
   /;/,$_ ; while (my($space,$time )= splice(@universe,0 ,2)){ my $journey =      shift
        @spaceTime;eval" $journey;"; $contact= substr ($@, $space , $time );        if(
             $space!=(("dimension" =~ // ) +1 +4+9)){          print$contact;
                  next;} $child; my$starChild=                    $contact;
                      print uc $starChild}
                        # $[
                         $_
                          ;

Name: Anonymous 2010-09-21 7:31

>>21
why would you even post this to 4 chan you fucking idiot

Name: Anonymous 2010-09-21 8:14

I was fishing in Montana with my father many years ago and caught a VALID PERL CODE

Name: Anonymous 2010-09-21 8:51

FACT:`cat /dev/urandom` generates VALID PERL CODE

Name: Anonymous !MhMRSATORI 2010-09-21 9:31

>>2
2007-11-04 16:57
>
/prog/ has really gone to the shitter these days

lol'd

Name: Anonymous 2010-09-21 10:48

>>22
Why do you hate my cod

Name: Anonymous 2010-09-21 14:57

I'll give you some decent Perl code:
http://dis.4chan.org/read/prog/1283863140

Name: Anonymous 2011-02-04 19:20

Don't change these.
Name: Email:
Entire Thread Thread List