Search Results

Showing results 1 to 40 of 56
Search took 0.01 seconds.
Search: Posts Made By: masijade ; Forum: Perl and child forums
Forum: Perl Oct 26th, 2009
Replies: 10
Views: 1,353
Posted By masijade
To help them learn. Definately not to do their homework for them.

Get them to attempt it, and post their code. Then, give them pointers on what they then need to do to fix that code, and get...
Forum: Perl Oct 26th, 2009
Replies: 10
Views: 1,353
Posted By masijade
Okay? So why are you attempting to do other's homework for them?
Forum: Perl Oct 26th, 2009
Replies: 10
Views: 1,353
Posted By masijade
Okay? So why are you using "$a[...]" when your array is @data1?
Forum: Perl Oct 26th, 2009
Replies: 10
Views: 1,353
Posted By masijade
Have you actually tried doing exactly that?
Forum: Perl Jul 30th, 2009
Replies: 1
Views: 471
Posted By masijade
As in the response to your hijack post in the other thread
$ENV{PATH}
Forum: Perl Jul 30th, 2009
Replies: 6
Views: 6,125
Posted By masijade
Forum: Perl Jun 12th, 2009
Replies: 3
Views: 381
Posted By masijade
Because of the logfile in this post
http://www.daniweb.com/forums/thread194433.html
maybe?
Forum: Perl Dec 11th, 2008
Replies: 7
Views: 2,261
Posted By masijade
Nope. Only have very limited experience in Perl on Windows. And, truth to tell, almost no experience in Perl the last four years, so I'm a bit rusty, anyway. ;-)
Forum: Perl Dec 10th, 2008
Replies: 7
Views: 2,261
Posted By masijade
I said chdir function. Don't use the system function to do this, use the chdir function.

http://perldoc.perl.org/functions/chdir.html
Forum: Perl Dec 10th, 2008
Replies: 7
Views: 2,261
Posted By masijade
Each system command gets it's own "shell" (if you want to call it such, it's not really a complete shell, but it is an executiuon environment). So, the cd is working, but it's happening within that...
Forum: Perl Jun 8th, 2008
Replies: 3
Views: 826
Posted By masijade
Nevermind Wrong topic.
Forum: Perl Nov 30th, 2007
Replies: 7
Views: 1,300
Posted By masijade
You're probably right, but I, myself, will sometimes settle for brevity (as in this case), since most of the perl scripts I have to write have no real need of this type of optimization. They are...
Forum: Perl Nov 29th, 2007
Replies: 7
Views: 1,300
Posted By masijade
Oh, I just noticed too, that I accidentally inserted a \ in front of the first paren.

Although, to tell you the truth, I don't know if yours is truely measurably more effecient (unless the string...
Forum: Perl Nov 29th, 2007
Replies: 7
Views: 1,300
Posted By masijade
s/^\s*\(.+)\s*$/$1/
Forum: Perl Nov 25th, 2007
Replies: 4
Views: 1,677
Posted By masijade
You don't. If you're problem is storing the time then simply store the number that time() returns. Then to display the time, assuming that the time retrieved from the DB is stored in the variable...
Forum: Perl Nov 24th, 2007
Replies: 4
Views: 1,677
Posted By masijade
gmtime() instead of localtime()
Forum: Perl Nov 2nd, 2007
Replies: 4
Views: 1,094
Posted By masijade
I will go out on a limb, and assume that you passed this hash to a method, and call the print statement in that method. In this case the print statement needs to be changed to:


print...
Forum: Perl Oct 26th, 2007
Replies: 5
Views: 1,660
Posted By masijade
vector -> multiple values (i.e. array, which this one is)
scalar -> a single value.

Read the tutorials laready linked to!
Forum: Perl Oct 11th, 2007
Replies: 4
Views: 1,075
Posted By masijade
$fullDate = join( "/", "$ARGV[3]", "$ARGV[4]", "$ARGV[5]");

or

$fullDate = "$ARGV[3]" . "/" . "$ARGV[4]" . "/" . "$ARGV[5]";


you might want to do $ARGV[5] += 1900; before hand, though.
...
Forum: Perl Oct 11th, 2007
Replies: 4
Views: 1,075
Posted By masijade
try

$fullDate = join( "/", $ARGV[3], $ARGV[4], $ARGV[5]);

or

$fullDate = join( "/", $ARGV[3..5] );
Forum: Perl Oct 2nd, 2007
Replies: 2
Views: 4,145
Posted By masijade
Have you defined one of the following variables in your script anywhere:

IO::Handle->output_record_separator EXPR
$OUTPUT_RECORD_SEPARATOR
$ORS
$\


Because, that "^M" is the "\r" from a...
Forum: Perl Aug 2nd, 2007
Replies: 1
Views: 1,041
Posted By masijade
It takes 9 command line arguments (which are filenames), reads the content of the first four, doing varying operations on the data within, and writes results to the last five. It seems to have to do...
Forum: Perl Jul 10th, 2007
Replies: 7
Views: 8,686
Posted By masijade
Yes place the push/unshift @INC in a BEGIN block, or change use MyModule to require MyModule.

The keyword use forces inclusion of the module at compile time, so modifications of the @INC list...
Forum: Perl Jun 26th, 2007
Replies: 4
Views: 1,661
Posted By masijade
Well, this is guanrteed to get you answers.

Continue in the other thread. If you don't like the answers there, then say that in the thread and ask for other possibilities, don't just simply start...
Forum: Perl Apr 20th, 2007
Replies: 3
Views: 3,435
Posted By masijade
Try this:

http://www.daniweb.com/techtalkforums/post250461.html#post250461
Forum: Perl Apr 19th, 2007
Replies: 13
Views: 6,409
Posted By masijade
Well, you can remove files and directories from your path with a single find command as follows:

find /path/to/backup/root -mtime 4 -exec rm -f {} \;

If you also want a list of files deleted in...
Forum: Perl Apr 5th, 2007
Replies: 3
Views: 2,493
Posted By masijade
JavaScript runs on the client. The perl would run on the server. Tomcat has nothing to do with either of them.
Forum: Perl Apr 4th, 2007
Replies: 2
Views: 1,711
Posted By masijade
Well, I see no <HTML> </HTML> or <BODY> </BODY> tags, so, if that is suppossed to be a complete HTML document, it is not.

I, myself, don't know how those OLE packages are suppossed to work, so I...
Forum: Perl Mar 23rd, 2007
Replies: 2
Views: 1,864
Posted By masijade
perlcc that comes with the perl distribution
Forum: Perl Mar 13th, 2007
Replies: 2
Views: 9,501
Posted By masijade
.pm files are "Perl Modules" rather than perl scripts. They are Perl's objects.
Forum: Perl Feb 26th, 2007
Replies: 6
Views: 6,125
Posted By masijade
Forum: Perl Feb 16th, 2007
Replies: 1
Views: 4,798
Posted By masijade
Because the path used will not function on a unix machine. The backslants will not work as a path on a unix machine and the double backslant at the beginning of the path also means absolutely...
Forum: Perl Feb 6th, 2007
Replies: 2
Views: 2,015
Posted By masijade
Well, your trying to match "Exit" and you entered "exit". It is case sensitive, you know.

If that is truly the case try the following


while ( uc($command) ne "EXIT" ) {

// instead of
...
Forum: Perl Jan 29th, 2007
Replies: 1
Views: 2,733
Posted By masijade
No. You seem to be combining too manythings in too many places, and in improper manners at that. Rather than stating what technology you want to use to accomplish what, simply

1. describe what...
Forum: Perl Dec 11th, 2006
Replies: 13
Views: 2,824
Posted By masijade
So search for some Auth module on CPAN/ActiveState that might help you. There are lots of them.
Forum: Perl Nov 10th, 2006
Replies: 10
Views: 5,309
Posted By masijade
Well, yes, seemingly they can run from everywhere, or you wouldn't be getting an internal server error, but rather the contents of the script spilled out onto the browser (or the browser asking you...
Forum: Perl Nov 7th, 2006
Replies: 2
Views: 7,535
Posted By masijade
There is a Net::SSH CPAN module that is easy to install, and needs a preinstalled OpenSSH, and I don't think it can do SFTP. There is also the module Net::SSH::Perl. This module does not need a...
Forum: Perl Oct 23rd, 2006
Replies: 2
Views: 8,966
Posted By masijade
use


system("command");


on a uniy system, do man perlfunc and search for system. I don't know where the docu is on windows, but since you are using it, you should, so if you are using...
Forum: Perl Oct 11th, 2006
Replies: 2
Views: 2,756
Posted By masijade
You said you removed the passphrase, but here you are waiting for the passphrase prompt. Of course it will timeout as this should never come.

You should be able to comment out this block of code...
Forum: Perl Sep 27th, 2006
Replies: 1
Views: 5,940
Posted By masijade
That's because the perl script is running on the server side, so you simply attemtped to open notepad on the server, rather than the client. If you want to open something on the client, then you...
Showing results 1 to 40 of 56

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC