| idiocrash | why haskell? I don't know a shred about haskell. but it seems that C seems to be the language du-jour for these types of things. |
| action | CPAN upload: WWW-Zorpia-Upload-0.01 by FAYLAND |
| CPAN | upload: WWW-Zorpia-Upload-0.01 by FAYLAND |
| zamolxes | you must be joking what types of things? |
| idiocrash | dude! I'm a 4GL guy. |
| tiglionabbit_ | is there a special variable for the name of a file being read from by a <>? |
| Paladin | tiglionabbit_: perldoc perlvar look up $ARGV |
| f00li5h | $ARGV |
| tiglionabbit_ | I know about $ARGV but I don't know how to know which index of $AR GV it's at when using <> |
| Paladin | tiglionabbit_: what do you mean which index? $ARGV is a scalar.. |
| f00li5h | tiglionabbit_: perldoc perlvar look up $ARGV |
| tiglionabbit_ | oh |
| nainef | hey |
| f00li5h | nainef: hey there |
| nainef | helo! |
| somian | heyo |
| spo0nman | perl -e 'print "a"|"b"; c explain? |
| f00li5h | bitwise or |
| spo0nman | so why do i get a c? |
| f00li5h | eval: sprintf " %07b %07b $07b " , ord 'a', ord 'b', ord ('a'|'b') |
| buubot | f00li5h: 1100001 1100010 b |
| f00li5h | eval: sprintf " %07b %07b %07b " , ord 'a', ord 'b', ord ('a'|'b') |
| buubot | f00li5h: 1100001 1100010 1100011 |
| f00li5h | that's why. |
| spo0nman | ah! it takes the output of bitwise and tries to return a ascii char for thaty. |
| f00li5h | spo0nman: it's done at string level, not character level but yes, it uses the ascii value, and does an C< or > on each char eval: ($a,$b)=(Moo, Sho );$c = $a|$b; sprintf "$a( %07b ) | $b ( %07b ) = $c( %07b ) " , ord $a, ord $b, ord $c |
| buubot | f00li5h: Moo( 1001101 ) | Sho ( 1010011 ) = _oo( 1011111 ) |
| f00li5h | not changing the binary values was a silly thing to do |
| OracleGD | Tutorials? |
| JasonKing | perldoc |
| OracleGD | Aight. |
| JasonKing | And GIYF. |
| OracleGD | Always. |
| JasonKing | In case you're not aware, check out the -q option (perldoc perldoc for more info). |