| f00li5h | VSpike: perldoc perlvar |
| action | CPAN upload: mogilefs-server-2.09 by BRADFITZ |
| CPAN | upload: mogilefs-server-2.09 by BRADFITZ |
| f00li5h | VSpike: all the builtin variables are in tehre |
| bashologist | f00li5h: Ok, thank you very much. |
| f00li5h | bashologist: sure, i i'm good at being a zealot |
| sbingner | suppose that's not really convenient tho |
| scrottie | sbingner: with IPC::Open2, I still have to copy the output of the first thing in the set of pipes to the second using a loop. And if there are multiple things in the chain, I have to fork and loop on each copying operation. It winds up being a good chunk of code and in bash, there's almost no code required to do it. |
| action | sbingner nods |
| sbingner | nods |
| scrottie | f00lish: foo bar and baz are arbirary Unix programs that take data on STDIN and emit data on STDOUT. |
| sbingner | scrottie, how about open(OUTPUT, "command1 | command2 |" ) |
| f00li5h | scrottie: i know, i was matching a vague statement with another vague statement |
| scrottie | Well, I'm interested in another advantage of Perl, and that's binary clean interfaces/execve |
| VSpike | f00li5h: thanks |
| scrottie | I want to do open my $f, '|-', 'prog', @args; ... and set up pipes between those. |
| f00li5h | VSpike: sure thing |
| sili | sup scrottie |
| f00li5h | scrottie: i don't know, but htere should be |
| scrottie | or similiar with IPC::Open2 hey sili, how goes? |
| f00li5h | scrottie: open my $fh, [program] [thing] [thing] |
| sili | scrottie: purdy good. how about you? |
| scrottie | meh, alright, I suppose |
| sili | ya |
| VSpike | So this script does this at the start: $class = $ARGV[0] || die; shift; |
| f00li5h | scrottie: looks like an alright syntax for it ... i havn't the mastery to do it |
| VSpike | then a couple more like that for other parameters |
| sili | I'm trying to figure out how to keep my car without paying a riduclous amount each month |
| scrottie | ack |
| f00li5h | VSpike: it takes the first argument, (and dies if it's missing) and the disgards the second arg |
| VSpike | I assume shift shifts the argument array, and the syntax means if the param is missing then die |
| scrottie | if you had a plain, boring car, I'd tell you to sell it and do the flexcar thing. |
| f00li5h | VSpike: shift does just that |
| VSpike | The next line is: $sender = $ARGV[0] || die; shift; |
| f00li5h | VSpike: (or shifts the array it's given) VSpike: use one of the poste bins in the topic |
| scrottie | trying to figure out how to keep stuff, too... |
| VSpike | Yeah sorry, was only gonna paste one line :) |