Have Perl echo code while executing it w/o prompting me per line

2009-07-20 Thread Sara Kinner
How can I make Perl echo each line of code before executing it? I don't want to hit return after each code line is printed: I just want Perl to print it as it's executing code normally.

uppercase strings

2003-10-08 Thread Sara Gribble
I would appreciate some help with this. I am learning Perl. I have a string inputed by the user. This string is then split, every first letter of each word in the string is uppercased, then joined back together and printed. Here is my code, can anyone help? Thanks, Sara G. !/usr/bin/perl

Re: Check file permissions

2001-08-09 Thread Sara Taillon
You can use stat as others recommended, but stat can be expensive. Stat is good for getting all permissions, but if you just want to see if you can write, execute or read a file, try using the file test operators. For example, to see if a file is writable: if (-w $filename) { ... } Sara

Updating class variables - object oriented Perl

2001-07-18 Thread sara
lf = shift; my ($seconds) = @_; #the problem is that now access method is also set to seconds! $self->[$TOTAL_ACCESS_TIME] += $seconds; } I would be greatfull for any help. Regards Sara -- Get your firstname@lastname email for FREE at http://Nameplanet.com/?su -- To unsubscri

RE: Problem with getting a file to open

2001-06-07 Thread Sara Campbell Meeks
Adding $edgar/ seemed to fix it. If I seem pretty clueless, it's because I've been programming for all of two days. Thanks again, Campbell

RE: Problem with getting a file to open

2001-06-07 Thread Sara Campbell Meeks
When I do that I get yet another error message: print() on closed filehandle main::FILE at /home/Campbell/perl/Get.Info line 9 Which is what made me try ">$file" to begin with. *shrug* Thanks, Campbell -Original Message- From: Andrew Nelson To: 'Sara Campbe

Problem with getting a file to open

2001-06-07 Thread Sara Campbell Meeks
I have this bit of code: #!/usr/bin/perl -w $edgar = "/home/Campbell/perl/edgar" opendir (EDGAR, $edgar) or die "Can't find $edgar!\n"; while ($file = readdir EDGAR) { open (FILE, ">$file"); print FILE; } When I run the program I get this error message: Use of uninitialized

What is this?

2001-06-06 Thread Sara Strader
125 Any feedback will be appreciated. This is currently running on a Unix server. Thanks Sara S. [EMAIL PROTECTED]