#perl - Sat 21 Apr 2007 between 03:29 and 04:13



alesterNow that's something that is meaningful, unlike "stack trace"
initselfjrjazzman: you're apply non-Perl jargon to aid you in understanding Perl.
alesterSee the caller() function
DavemanAny DBI whores in the house?
initselfDaveman: ME ME!
alesterThe caller() function will tell you where a given function is called from.
Davemanhah, okay
alesterBut that doesn't help you if it's code you didn't call.
s/call/write/
DavemanHave you ever gotten the various NAME statement calls to work with mysql?
initselfpaste one.
alesterjrjazzman: 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.
jrjazzmanI'd guess a print, but I'm such a perl noob I'm not sure I'd know the difference
alesterThat's why we suggested grepping the code for the error
to find out
initselfjrjazzman: if you suspect print, grep the error message in your script.
alesterbut by that time, you know where it's getting called from.
initselfBy grep, I mean 'from the commmand line in Ubuntu'.
alesterThe easy way to know if it's warn vs. print is whether it went to STDERR or STDOUT respectively.
initselfHey, has anyone ever tried /join #sex on freenode?
it's pretty funny!
f00li5hinitself: that is pretty funny
zizazzesame for #warez ... i wonder what else
f00li5hzizazze: porn's a safe bet
zizazzeheh... yeah i tried it but no
f00li5hhrm
Davemano.O
f00li5hDaveman: =^_^=
ZoffixIs 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.
f00li5hZoffix: CGI has another method that tells you info about uploads
something like file_name('paramname') or something
ZoffixThanks, I just found it, uploadInfo();
f00li5hsure thing
axscodehow to call perl in windows ? like #!/usr/bin/perl in *nix
f00li5haxscode: you need to associate the .pl extension with the perl binary
then you can just run it
axscodehmmm ok... thanks.
f00li5h(from memory, never done it, ymmv)
Davemanmeow

Page: 5 12 19 26 33 40 47 54 61 68 

IrcArchive