| bpalmer | does it also add shell built-ins? |
| pkundu | actually I have a shell where if you type "?" it returns help |
| alephnull | pkundu: oh, and aliases and shell functions too. |
| Paladin` | pkundu: you'd have to manually go through the $PATH and get all files, then test each one for +x |
| bpalmer | pkundu: well, you have two options: do what the shell does, or have an inferior shell running you provoke into doing what you want, and you present its output somehow |
| action | BinGOs provokes GumbyBRAIN |
| BinGOs | provokes GumbyBRAIN |
| GumbyBRAIN | gumbybrain wants to kill policy. |
| pkundu | hmm |
| SubStack | perl -e'print join "\n", <$_/*foo*> for split /:/, $ENV{PATH}' or similar |
| pkundu | ok thank :( :) |
| Zaba | eval: sub test{return %(test => "blah);} print test(); |
| buubot | Zaba: Error: Can't find string terminator '"' anywhere before EOF at eval line 1. |
| Zaba | eval: sub test{return %(test => "blah");} print test(); |
| buubot | Zaba: Error: syntax error at eval line 1, near "%(test" |
| Zaba | . how do i make an anonymous hash? or well |
| Paladin` | Zaba: {} |
| Zaba | or array ahh |
| action | Zaba sucks |
| Zaba | sucks |
| Paladin` | Zaba: {} creates an anonymous hash reference.. is that what you meant? |
| Zaba | yeah and () for array |
| Paladin` | Zaba: no.. [] creates an anon array ref |
| Zaba | orly? why does () work? Paladin`, is () and [] same then? |
| memowe | Where does it "work"? |
| SubStack | one returns a reference, one returns a list |
| Prof_Vince | perlbot references > Zaba |
| Zaba | hm I need to return a list of values, Duh |
| memowe | @list_of_values = qw( foo bar baz ); return @list_of_values () doesn't make lists - context makes lists. |
| BinGOs | hint, subs return either a scalar or a *list* dependent on the context in which they were called. |
| Zaba | eval: sub test1 { return ("blah", "blah"); } sub test2 { return ["blah", "blah"]; } print test1(); print "\n"; print test2(); |
| buubot | Zaba: blahblah ARRAY(0x8643fa8) 1 |