Julian Fondren

Houston, TX

Age: 30

1d
awarded Popular Question
May
18
comment Perl regex to match carriage return and newline
Your new regex only matches one character. If it works, then you know why trying to match two characters failed.
May
18
revised Parsing the output of SGE's (qstat -j "*") using AWK or Perl
added 1260 characters in body
May
18
answered Parsing the output of SGE's (qstat -j "*") using AWK or Perl
May
18
comment Graphical output in Perl
Try starting with SDL.
May
18
answered Is there a way to capture a subroutine's print output to a variable so I can send it to stderr instead?
May
17
comment How to get the first row of every data record using perl?
. doesn't match \n by default, so it's very similar to your first capture.
May
17
awarded Informed
May
17
comment fix rotate 3D object Perl code
Meanwhile, what infuriates me is silent, cowardly moderation, not moderation that I merely disagree with. And so I didn't ask for an explanation for the moderation; I called the moderator a coward for his silence. Way to be corrective; way to disrupt my ability to find posts I was interested in, way to vary enormously and arbitrarily in what's unacceptable - without leaving me my own words as a record, etc.
May
17
comment PERL API error 500 server closed connection without sending any data back
And this only happens with large files? It's possible that your script is taking too long to complete and so getting killed off by the host. From Apache's perspective (as it's not party to the decision to kill off your process) it's just getting a premature end of script headers, and properly reports an internal server error.
May
17
revised Perl program to read from a file which contains different email IDs from different domains
added 1202 characters in body
May
17
answered Perl program to read from a file which contains different email IDs from different domains
May
17
comment Perl program to read from a file which contains different email IDs from different domains
use warnings;, too.
May
16
comment Reading and Writing line by line from/to the same file
use Tie::File.
May
16
answered fix rotate 3D object Perl code
May
16
comment python equivalent to perl's @{$obj->method($args)} or %{$obj->method($args)}
"Take a reference and dereference it" is pretty damned common in Perl. The OP has shown two examples of dereferencing syntax, and where you'd use them rather than other syntax such as @$var. The OP has not stated that he wants to @{$hashref} or %{$arrayref}, which are simply errors. They aren't something you can do in Perl. Even faced with a stream of random types you wouldn't eval a dereference to see if it worked. This is just nonsense born of a bunch of Python followers not knowing much about Perl.
May
16
comment fix rotate 3D object Perl code
Anyway, the likely culprit is that your while loops are structured to terminate upon reaching a sentinel -- like a C string function that's looking for the NUL byte. This is meaningless in Perl. You should loop over the elements of the arrays and modify them in place.
May
16
comment fix rotate 3D object Perl code
I swear it took me more than a minute to realize that there was Perl code on this page. I was about to ask in a comment: "what does this question have to do with Perl? Do you want to translate this C++ to Perl? What have you tried?"
May
16
answered python equivalent to perl's @{$obj->method($args)} or %{$obj->method($args)}
May
16
comment python equivalent to perl's @{$obj->method($args)} or %{$obj->method($args)}
(Bugger if I know what this has to do with Python, though.)
1 2 3 4 5