Sean wrote:
I've been trying to wrap my brain around this for a little while, and I
don't think I've been completely successful, but here's my stab at what's
wrong.
You stated, I think, that line 27 worked and line 29 did not. Line 27
was
properly escaped...
27
. Thanks again. :-)
On Tuesday, February 12, 2002, at 08:50 AM, Bob Showalter wrote:
-Original Message-
From: david wright [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 9:02 PM
To: [EMAIL PROTECTED]
Subject: AARGHHH,. chdir(yes - no)
Man, i am going crazy
Hi All,
How can I check if directory is older then X days/hours
thanks
Amit
run from command line.
perl -e 'print (-M directory)'
- M, Returns the age of OPERAND in days when the program started.
i am sending @array a directory (i.e. example /usr/dw5) which contains a
lot of files and folders (directories).
(i have already checked the value of @array and $dup and they are as
desired.) What i want to accomplish is: print yes, $dup (file name) if
it's a directory (folder) i am testing it
On Monday, February 4, 2002, at 07:26 PM, Jeff 'japhy' Pinyan wrote:
On Feb 4, david wright said:
i am sending @array a directory (i.e. example /usr/dw5) which
contains a
lot of files and folders (directories).
Be warned that readdir() returns NAMES, not PATHS.
opendir DIR, /some
Bompa wrote:
I wrote a script to demonstrate how the value of $_ could get changed
unexpectedly. (It took me an hour, but I learned from it, heh).
use strict;
our @list = qw(a b c d);
foreach (@list) {
check_b;
print $_, \n;
}
sub check_b {
foreach (@list) {
#local $_;
$_
Stuart Clark wrote:
How do I replace the letter M with 20 spaces.
s/M/\s[20]/; # dosen't seem to work :-(
Regards
Stuart Clark
here's my 10c answer ;-)
it seems that a tab \t eq 5 spaces.
s/M/\t\t\t\t/;
I have seen Ex #1 corrected (as being more well written) to Ex #2. In
this case it is just being passed a $ but the data being passed was
irrelevant. (though not a ref) I still don't see why, i guess i don't
fully understand shift. Any light shedder's appreciated, thanks : -)
EX #1:
sub
LH wrote:
What is the global wildcard for unix?
I'm trying to chmod 755 all files in a dir... possible?
chmod 755 *.* ?
Thanks
LH
ahh, so close chmod 775 *
-dw5
I have seen Ex #1 corrected (as being more well written) to Ex #2.
In this case it is just being passed a $ but the data being passed was
irrelevant. (though not a ref) I still don't see why, i guess i don't
fully understand shift. Any light shedder's appreciated, thanks : -)
EX #1:
I'm trying to count the recurrence of lines in a file. This works
how i want but first it prints Use of uninitialized,... - see below.
I know i'm probably not supposed to use a hash like this but it does
work. I either need another error free way to do this or a fix. I
have
Timothy B wrote:
Hello out there - I have learned a lot of Perl today, but I am still
trying
to figure one more thing out.
How can I go through a file and extract all the text between certain
delimiters - for example I have:
Bilbo, Why I like rings Freemont Press, 1998.
Frodo, Why I don't
I'm trying to count the recurrence of lines in a file. This works
how i want but first it prints Use of uninitialized,... - see below.
I know i'm probably not supposed to use a hash like this but it does
work. I either need another error free way to do this or a fix. I have
figures
excellent, thanks for two great answers. I actually tried (! defined)
but i tried it on @storeList=FILEIN; which did not produce the
desired results at all : -(
John wrote:
The reason you are getting the warnings is because of $saveNum{$dup} on
the right hand side of the expression. Use
14 matches
Mail list logo