Re: lstat and its uses

2008-02-12 Thread Michael Barnes
Chas. Owens told me on 02/12/2008 12:30 PM: > On Feb 12, 2008 1:08 PM, Kashif Salman <[EMAIL PROTECTED]> wrote: >> On Feb 12, 2008 9:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: >>> On Feb 12, 2008 12:38 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: >>> snip I'm the new kid and this is a be

Re: lstat and its uses

2008-02-12 Thread Chas. Owens
On Feb 12, 2008 1:08 PM, Kashif Salman <[EMAIL PROTECTED]> wrote: > > On Feb 12, 2008 9:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > > On Feb 12, 2008 12:38 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: > > snip > > > I'm the new kid and this is a beginners forum, so I welcome all ideas > > > an

Re: lstat and its uses

2008-02-12 Thread Kashif Salman
On Feb 12, 2008 9:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 12:38 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: > snip > > I'm the new kid and this is a beginners forum, so I welcome all ideas > > and options. Forgiving my ignorance, would you mind giving an example > > of ho

Re: lstat and its uses

2008-02-12 Thread Chas. Owens
On Feb 12, 2008 12:38 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: snip > I'm the new kid and this is a beginners forum, so I welcome all ideas > and options. Forgiving my ignorance, would you mind giving an example > of how I would do this with lsof? snip This only works on systems with lsof.

Re: lstat and its uses

2008-02-12 Thread Michael Barnes
Kashif Salman told me on 02/12/2008 09:31 AM: > On Feb 12, 2008 6:51 AM, Michael Barnes <[EMAIL PROTECTED]> wrote: >> >> John W. Krahn told me on 02/11/2008 03:47 PM: >>> Michael Barnes wrote: I thought about using lstat to get the size of a file for file comparisons. I see that lstat al

Re: lstat and its uses

2008-02-12 Thread Kashif Salman
On Feb 12, 2008 6:51 AM, Michael Barnes <[EMAIL PROTECTED]> wrote: > > > John W. Krahn told me on 02/11/2008 03:47 PM: > > Michael Barnes wrote: > >> I thought about using lstat to get the size of a file for file > >> comparisons. I see that lstat always returns a list of thirteen values. > >> Th

Re: lstat and its uses

2008-02-12 Thread Michael Barnes
John W. Krahn told me on 02/11/2008 03:47 PM: > Michael Barnes wrote: >> I thought about using lstat to get the size of a file for file >> comparisons. I see that lstat always returns a list of thirteen values. >> The references I find appear to require assignment of those 13 values >> to varia

Re: lstat and its uses

2008-02-11 Thread David Moreno
That is very interesting, actually. What piece of documentation should I read to learn about this operators? Thanks. David. On Feb 11, 2008 6:14 PM, Kashif Salman <[EMAIL PROTECTED]> wrote: > Perl already has all the info from the previous lstat command, using _ > is more efficient in that it do

Re: lstat and its uses

2008-02-11 Thread Gunnar Hjalmarsson
Kashif Salman wrote: On Feb 11, 2008 3:51 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: [ Please stop this top-posting!! -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: lstat and its uses

2008-02-11 Thread Kashif Salman
On Feb 11, 2008 3:51 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > [ Please stop this top-posting!! And David, you'd better ask your Perl > questions of general interest to the list. ] > > Kashif Salman wrote: > > David Moreno wrote: > >> Kashif Salman wrote: > >>> David Moreno wrote: >

Re: lstat and its uses

2008-02-11 Thread Gunnar Hjalmarsson
[ Please stop this top-posting!! And David, you'd better ask your Perl questions of general interest to the list. ] Kashif Salman wrote: David Moreno wrote: Kashif Salman wrote: David Moreno wrote: On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: lstat $filename; my $size

RE: lstat and its uses

2008-02-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Kashif Salman [mailto:[EMAIL PROTECTED] > Sent: Monday, February 11, 2008 15:24 > To: David Moreno > Cc: John W. Krahn; Perl Beginners > Subject: Re: lstat and its uses > > I am not sure how to bring it up using the perldoc, I re

Re: lstat and its uses

2008-02-11 Thread Kashif Salman
I am not sure how to bring it up using the perldoc, I read it when I was going through the book "Learning Perl". Maybe someone else here can point out how to find it in perldoc.. On Feb 11, 2008 3:16 PM, David Moreno <[EMAIL PROTECTED]> wrote: > That is very interesting, actually. What piece of do

Re: lstat and its uses

2008-02-11 Thread Kashif Salman
Perl already has all the info from the previous lstat command, using _ is more efficient in that it doesn't have to do another system call. On Feb 11, 2008 2:06 PM, David Moreno <[EMAIL PROTECTED]> wrote: > On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > > lstat $filename; >

Re: lstat and its uses

2008-02-11 Thread David Moreno
On Feb 11, 2008 4:47 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > lstat $filename; > my $size = -s _; Did you mean: my $size = -s $_; ? -- David Moreno - http://www.damog.net/ Yes, you can.

Re: lstat and its uses

2008-02-11 Thread Mark Wagner
On 2/11/08, Michael Barnes <[EMAIL PROTECTED]> wrote: > I thought about using lstat to get the size of a file for file > comparisons. I see that lstat always returns a list of thirteen values. > The references I find appear to require assignment of those 13 values > to variables, even though I on

Re: lstat and its uses

2008-02-11 Thread John W. Krahn
Michael Barnes wrote: I thought about using lstat to get the size of a file for file comparisons. I see that lstat always returns a list of thirteen values. The references I find appear to require assignment of those 13 values to variables, even though I only want to use one. Do I really have

Re: lstat and its uses

2008-02-11 Thread Chas. Owens
On Feb 11, 2008 4:39 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > Chas. Owens wrote: > > On Feb 11, 2008 4:17 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: > >> I thought about using lstat to get the size of a file for file > >> comparisons. I see that lstat always returns a list of thirteen v

Re: lstat and its uses

2008-02-11 Thread John W. Krahn
Chas. Owens wrote: On Feb 11, 2008 4:17 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: I thought about using lstat to get the size of a file for file comparisons. I see that lstat always returns a list of thirteen values. The references I find appear to require assignment of those 13 values to

RE: lstat and its uses

2008-02-11 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Chas. Owens [mailto:[EMAIL PROTECTED] > Sent: Monday, February 11, 2008 13:21 > To: Michael Barnes > Cc: beginners@perl.org > Subject: Re: lstat and its uses > > On Feb 11, 2008 4:17 PM, Michael Barnes <[EMAIL PROTECTED]> wr

Re: lstat and its uses

2008-02-11 Thread Chas. Owens
On Feb 11, 2008 4:17 PM, Michael Barnes <[EMAIL PROTECTED]> wrote: > I thought about using lstat to get the size of a file for file > comparisons. I see that lstat always returns a list of thirteen values. > The references I find appear to require assignment of those 13 values > to variables, eve