| alester | Now that's something that is meaningful, unlike "stack trace" |
| initself | jrjazzman: you're apply non-Perl jargon to aid you in understanding Perl. |
| alester | See the caller() function |
| Daveman | Any DBI whores in the house? |
| initself | Daveman: ME ME! |
| alester | The caller() function will tell you where a given function is called from. |
| Daveman | hah, okay |
| alester | But that doesn't help you if it's code you didn't call. s/call/write/ |
| Daveman | Have you ever gotten the various NAME statement calls to work with mysql? |
| initself | paste one. |
| alester | jrjazzman: The key is, it depends on many things. Did the error come from a print vs. a warn vs. a croak vs. whatever If it's thru a warn, then you can play tricks with that, too. |
| jrjazzman | I'd guess a print, but I'm such a perl noob I'm not sure I'd know the difference |
| alester | That's why we suggested grepping the code for the error to find out |
| initself | jrjazzman: if you suspect print, grep the error message in your script. |
| alester | but by that time, you know where it's getting called from. |
| initself | By grep, I mean 'from the commmand line in Ubuntu'. |
| alester | The easy way to know if it's warn vs. print is whether it went to STDERR or STDOUT respectively. |
| initself | Hey, has anyone ever tried /join #sex on freenode? it's pretty funny! |
| f00li5h | initself: that is pretty funny |
| zizazze | same for #warez ... i wonder what else |
| f00li5h | zizazze: porn's a safe bet |
| zizazze | heh... yeah i tried it but no |
| f00li5h | hrm |
| Daveman | o.O |
| f00li5h | Daveman: =^_^= |
| Zoffix | Is there a way to find out file name from a file handle? Specifically, I am using CGI.pm and I need to find out what extension the uploaded file has. |
| f00li5h | Zoffix: CGI has another method that tells you info about uploads something like file_name('paramname') or something |
| Zoffix | Thanks, I just found it, uploadInfo(); |
| f00li5h | sure thing |
| axscode | how to call perl in windows ? like #!/usr/bin/perl in *nix |
| f00li5h | axscode: you need to associate the .pl extension with the perl binary then you can just run it |
| axscode | hmmm ok... thanks. |
| f00li5h | (from memory, never done it, ymmv) |
| Daveman | meow |