Hi Rob,
Thank you for that input. I was also enable to successfully complete the
same with the below script. (its a mix up from various scripts :D)
$file1 =""; # input file
$file2=".new";
my $flag=0; #output file
open(INFO,"$file1"); # Open the first file
open(OUT,">$file2");
Rob Dixon wrote:
>
> Meanwhile, how about a simpler solution like mine below, which I think is much
> more readable.
>
> HTH,
>
> Rob
>
>
>
>
> use strict;
> use warnings;
>
> my $source = '';
> my $new = '.new';
>
> open my $in, '<', $source or die $!;
> open my $out, '>', $new or
vigneshwara balaji wrote:
>
> Thank you for that input. I was also enable to successfully complete the
> same with the below script. (its a mix up from various scripts :D)
You must always
use strict;
use warnings;
at the start of your code, and declare all variables with 'my'. That way a lot
life is beautiful wrote:
> Hi All,
> Can some one help me gain knowledge as how I can
> delete few lines from XML.
>
> Example
>
> java:/LockTestDb
> javax.sql.DataSource
> Application
> Shareable
>
>
> wm/default
> com.ibm.web
Hi All,
Can some one help me gain knowledge as how I can
delete few lines from XML.
Example
java:/LockTestDb
javax.sql.DataSource
Application
Shareable
wm/default
com.ibm.websphere.asynchbeans.WorkManager
Container
On Apr 15, 2007, at 6:38 PM, Mário Gamito wrote:
I have this site that auto generates an index.html file every 15
minutes
(it's a blog aggregator).
I need that every time the file is generated, all the contents between
the lines
href="http://domain.com/2006/08/bourne-shell.html";>Bourne Shell
Hi,
I have this site that auto generates an index.html file every 15 minutes
(it's a blog aggregator).
I need that every time the file is generated, all the contents between
the lines
http://domain.com/2006/08/bourne-shell.html";>Bourne Shell
and
http://domain.com/2006/08/bourne-shell.html";>S
Untested code:
(In the RegEx, I replace / with . because it should work fine and looks less
messy - and . is not escaped.)
# File - source
open FILE, "< file.html";
my $delete = 0; # Start by not deleting
my $output = "";
my $deletedAlready = 0;
my $searchString = 'http://domain.com/2006/08/bour
On 4/15/07, Mário Gamito <[EMAIL PROTECTED]> wrote:
Hi,
I have this site that auto generates an index.html file every 15 minutes
(it's a blog aggregator).
I need that every time the file is generated, all the contents between
the lines
http://domain.com/2006/08/bourne-shell.html";>Bourne Shell
Hi,
I have this site that auto generates an index.html file every 15 minutes
(it's a blog aggregator).
I need that every time the file is generated, all the contents between
the lines
http://domain.com/2006/08/bourne-shell.html";>Bourne Shell
and
http://domain.com/2006/08/bourne-shell.html";>S
10 matches
Mail list logo