Re: Permission bit translator?

2011-03-10 Thread John W. Krahn
newbie01 perl wrote: Hi, Hello, Does anyone know of any permission bit "translator"? One that can translate the permission bit from its textual value to its octal value and vice versa. It is alright if it is always just rwx but on a lot of occasions nowadays, getting a lots of s, S, t, etc.

Re: Permission bit translator?

2011-03-10 Thread jim
On Fri, 11 Mar 2011 15:03:14 +1300 newbie01 perl wrote: > Hi, > > Does anyone know of any permission bit "translator"? One that can > translate the permission bit from its textual value to its octal value > and vice versa. It is alright if it is always just rwx but on a lot of > occasions nowada

Re: Permission bit translator?

2011-03-10 Thread Rob Dixon
On 11/03/2011 02:03, newbie01 perl wrote: Does anyone know of any permission bit "translator"? One that can translate the permission bit from its textual value to its octal value and vice versa. It is alright if it is always just rwx but on a lot of occasions nowadays, getting a lots of s, S, t,

Permission bit translator?

2011-03-10 Thread newbie01 perl
Hi, Does anyone know of any permission bit "translator"? One that can translate the permission bit from its textual value to its octal value and vice versa. It is alright if it is always just rwx but on a lot of occasions nowadays, getting a lots of s, S, t, etc. -rwxrwxrwx 1 oracle dba

Re: Date arithmetic advise/improvement - using stat ... calling the Perl script from a UNIX script

2011-03-10 Thread Rob Dixon
On 10/03/2011 23:13, newbie01 perl wrote: On Fri, Mar 11, 2011 at 6:19 AM, Rob Dixon On 10/03/2011 15:33, newbie01 perl wrote: Just want to know what improvement can be done with the code below if any. I am sure a lot of improvement/changes is required. I will be calling this script from a UNI

Re: Date arithmetic advise/improvement - using stat ... calling the Perl script from a UNIX script

2011-03-10 Thread Rob Dixon
On 10/03/2011 15:33, newbie01 perl wrote: > Hi all, > > Just want to know what improvement can be done with the code below if any. I > am sure a lot of improvement/changes is required. I will be calling this > script from a UNIX script, i.e.timediff=`timediff.pl $file`, so $file will > be passed t

Re: Date arithmetic advise/improvement - using stat ... calling the Perl script from a UNIX script

2011-03-10 Thread Shawn H Corey
On 11-03-10 10:33 AM, newbie01 perl wrote: #!/usr/bin/perl #$today = localtime(); $today_epoch = time(); $today = localtime($today_epoch); my @today = localtime( $today_epoch ); # When in list context, localtime returns an array that can be use with strftime @date_fields = split(" ",$toda

Date arithmetic advise/improvement - using stat ... calling the Perl script from a UNIX script

2011-03-10 Thread newbie01 perl
Hi all, Just want to know what improvement can be done with the code below if any. I am sure a lot of improvement/changes is required. I will be calling this script from a UNIX script, i.e.timediff=`timediff.pl $file`, so $file will be passed to the Perl script. It's probably a good idea to check

Re: multidimensional array check

2011-03-10 Thread vito pascali
> > That sounds only "slightly" different. Please examine the code that I have > provided and modify it for your own, specific needs. > U are right, I think I'm really close to the solution of my problem.. I tried to put all the lesson togheter and I got this script that do what i want: #!/usr/b