Hi Uri,
uri> that still isn't clear to me. is the @ARGV value to be scanned or
uri> skipped? you need to be very clear when you specify this stuff.
The @ARGV value is to be scanned for its sub-directories but excluding @ARGV
itself ... the File::Find gives all the listing and including the @ARGV
> "np" == newbie01 perl writes:
np> Hi Uri,
uri> first off please edit the quoted part of posts. only keep the parts you
uri> are commenting or asking about.
np> - thanks, will try to do that every time from now on ... btw, how
np> are you editing yours, manually ... you look like
Hi Uri,
uri> first off please edit the quoted part of posts. only keep the parts you
uri> are commenting or asking about.
- thanks, will try to do that every time from now on ... btw, how are you
editing yours, manually ... you look like you are doing your editing of the
quote programmatically ..
> "np" == newbie01 perl writes:
first off please edit the quoted part of posts. only keep the parts you
are commenting or asking about.
np> How do I exclude the command line argument from the "found"
np> directories ... ??? Or would you recommend using File::Find::Rule
np> to exclude
On Mon, Jun 7, 2010 at 3:25 PM, Uri Guttman wrote:
> > "np" == newbie01 perl writes:
>
> np> I found a better example at a Perlmonk posting and changed it a bit as
> np> below:
>
> np> #!/usr/bin/perl
> np> use strict;
>
> no use warnings. bad. see below.
> np> use File::Find;
> np> us
> "np" == newbie01 perl writes:
np> I found a better example at a Perlmonk posting and changed it a bit as
np> below:
np> #!/usr/bin/perl
np> use strict;
no use warnings. bad. see below.
np> use File::Find;
np> use File::Spec::Functions;
np> #use File::Spec->no_upwards();
n
2010/6/7 Shlomi Fish
> On Sunday 06 Jun 2010 19:59:36 Wojciech Łysiak wrote:
> > On 06.06.2010 18:12, newbie01 perl wrote:
> > > Hi all,
> > >
> > > Oracle core dumps are created as directories. I want to remove these
> > > directories after a certain period of time, for example 10 days.
> > >
>
There is such a clot of stuff on cpan... I'm hoping to get a little
coaching here first.
If my aim is to write a `home use' tool for searching thru code in
html pages. (perl code I mean) there is always the problem of hits
containing piles of html glop.
Can anyone suggest a module that can help m
On Sunday 06 Jun 2010 19:59:36 Wojciech Łysiak wrote:
> On 06.06.2010 18:12, newbie01 perl wrote:
> > Hi all,
> >
> > Oracle core dumps are created as directories. I want to remove these
> > directories after a certain period of time, for example 10 days.
> >
> > I have the following script that
On 06.06.2010 18:12, newbie01 perl wrote:
Hi all,
Oracle core dumps are created as directories. I want to remove these
directories after a certain period of time, for example 10 days.
I have the following script that searches a directory for files that are
older than 10 days and possibly remove
> "SHC" == Shawn H Corey writes:
SHC> On 10-06-05 03:26 PM, Bryan Harris wrote:
>> [console]
>> $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})'
>> Use of uninitialized value in printf at -e line 1.
>> [/console]
>>
>> Anything that can help me here? I wish it'd
Hi all,
Oracle core dumps are created as directories. I want to remove these
directories after a certain period of time, for example 10 days.
I have the following script that searches a directory for files that are
older than 10 days and possibly remove them. At the moment, for the sake of
testin
On Sun, Jun 6, 2010 at 10:49, Philip Potter wrote:
> On 6 June 2010 14:37, Shawn H Corey wrote:
>> On 10-06-06 09:06 AM, Chas. Owens wrote:
>>>
>>> But that is not the problem; autovivification will create the references:
>>>
>>> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c'
>>>
>>
>> But
On 10-06-06 10:49 AM, Philip Potter wrote:
On 6 June 2010 14:37, Shawn H Corey wrote:
On 10-06-06 09:06 AM, Chas. Owens wrote:
But that is not the problem; autovivification will create the references:
perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c'
But that is the problem. Autovivi
On 6 June 2010 14:37, Shawn H Corey wrote:
> On 10-06-06 09:06 AM, Chas. Owens wrote:
>>
>> But that is not the problem; autovivification will create the references:
>>
>> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c'
>>
>
> But that is the problem. Autovivification should not happen for
On Sun, Jun 6, 2010 at 09:37, Shawn H Corey wrote:
> On 10-06-06 09:06 AM, Chas. Owens wrote:
>>
>> But that is not the problem; autovivification will create the references:
>>
>> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c'
>>
>
> But that is the problem. Autovivification should not hap
On Sat, Jun 5, 2010 at 09:59, Dr.Ruud wrote:
> Chas. Owens wrote:
>
>> my $xml = do {
>> open my $fh, "<", $filename
>> or die "could not open $filename: $!";
>> local $/;
>> <$fh>;
>> };
>
> I would write that as
>
> my $xml;
> { open my $fh, "<", $filename
> or die "could not open
On 10-06-06 09:06 AM, Chas. Owens wrote:
But that is not the problem; autovivification will create the references:
perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c'
But that is the problem. Autovivification should not happen for
r-values, only l-values.
--
Just my 0.0002 million
On Sat, Jun 5, 2010 at 12:47, Mephistopheles wrote:
> 1. Run sdiff on file1 and file2--supress identical lines
> 2. OUtput column1 to outputfile1 and column2 to outputfile2
snip
You should be able to run sdiff with either the [open][1] function
open my $pipe, "-|", "sdiff", "file1", "file2"
On 5 June 2010 17:47, Mephistopheles wrote:
> 1. Run sdiff on file1 and file2--supress identical lines
> 2. OUtput column1 to outputfile1 and column2 to outputfile2
What have you tried so far? We can't correct your code if you don't
give us any code to correct.
--
To unsubscribe, e-mail: beginn
On Sun, Jun 6, 2010 at 08:19, Shawn H Corey wrote:
> On 10-06-05 03:26 PM, Bryan Harris wrote:
>>
>> [console]
>> $ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})'
>> Use of uninitialized value in printf at -e line 1.
>> [/console]
>>
>> Anything that can help me here? I wish it'd sa
On 10-06-05 03:26 PM, Bryan Harris wrote:
[console]
$ perl -e 'use warnings; $c=undef; printf("%s", $c->[0]{dog})'
Use of uninitialized value in printf at -e line 1.
[/console]
Anything that can help me here? I wish it'd say:
Use of uninitialized value $c->[0]{dog} in printf at -e line 1.
Chas. Owens wrote:
my $xml = do {
open my $fh, "<", $filename
or die "could not open $filename: $!";
local $/;
<$fh>;
};
I would write that as
my $xml;
{ open my $fh, "<", $filename
or die "could not open $filename: $!";
local $/;
$xml= <$fh>;
}
because it pu
> On Thursday 03 Jun 2010 19:53:48 Bryan R Harris wrote:
>> Seems like the first time I run a new script I *always* get an error
>> message something like this:
>>
>> "Use of uninitialized value in printf at /Users/harrisb/Library/perl/matc
>> line 414."
>>
>> The problem is usually I'm print
1. Run sdiff on file1 and file2--supress identical lines
2. OUtput column1 to outputfile1 and column2 to outputfile2
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
25 matches
Mail list logo