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

Pages: 1-

Help with Perl

Name: Anonymous 2008-04-23 10:31

How do I use the -> operator?

Name: Anonymous 2008-04-23 10:37

Like you would in C.

Name: Anonymous 2008-04-23 10:39

a -> b;

Name: Anonymous 2008-04-23 10:59

abs :: Num a => a -> a

It's the type constructor function.

Name: Anonymous 2008-04-23 11:02

>>4
constructor `type` function

Name: Anonymous 2008-04-23 11:07

well hack my anus

Name: Anonymous 2008-04-23 11:11

>>5
I laughed like a mad-man, which I feel kinda bad about now :(

Name: Anonymous 2008-04-23 12:45

>>3
What it does?

Name: Anonymous 2008-04-23 12:48

haxmyanus :: Num hax => my -> anus

Name: Anonymous 2008-04-23 12:51

>>9
I hate people like you, that see some code and kill-yank forced meme stuff without knowing what it even does D;

PS. haxMyAnus :: (Anus a, Hax b) => a -> b -> a

Fixed.

Name: Anonymous 2008-04-23 12:53

FUCK, I failed to use the awesome word ``unbeknownst'' again.

Name: Anonymous 2008-04-23 12:53

>>10
Thanks. Sorry for that.

Name: Anonymous 2008-04-23 13:31

>>10
I think it should b -> a -> a as to follow the ``verb noun'' way of writing code.

Name: Anonymous 2008-04-23 13:36

>>2
Does anyone else find ./-> and */& unspeakably annoying?

Name: Anonymous 2008-04-23 13:42

>>14
I find Perl unspeakably annoying.

Name: Anonymous 2008-04-23 13:48

>>14
Not especially. However, the ->* and .* operators irk me somewhat.

Name: Anonymous 2008-04-23 14:06

>>15
Those are from C.

Name: Anonymous 2008-04-23 14:13

>>17
What are from C?

Name: Anonymous 2008-04-23 15:06

>>1
Perl has no -> operator. However, it has X->[Y], which is equivalent to ${X}[Y]; X->{Y}, which is equivalent to ${X}{Y}; X->(Y), which is equivalent to &{X}(Y); and X->foo(Y), which is a method call.
oh god this bbcode is horrible

Name: Anonymous 2008-04-23 15:20

>>19
Thanks.

Name: Anonymous 2008-04-23 16:15

>>19
WAHa detected.

Name: Anonymous 2011-02-03 2:56

Name: Sgt.Kabukiman䖉 2012-05-22 23:17

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

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