in reply to Splitting Across Multiple Lines
Hi!,
Just to give you another option: set the input delimiter ($/)
to a well chosen string in your text file (I would go for "* +"
or something in your case)
Then you can process every server individually:
fictional, and untested ;))
GreetZ!,
print "profeth still\n" if /bird|devil/;
Just to give you another option: set the input delimiter ($/)
to a well chosen string in your text file (I would go for "* +"
or something in your case)
Then you can process every server individually:
Anyhow.. that`s what I would do, the above code is justlocal $/="* +"; my @Serverlist=<INFILE>; for(@Serverlist) { my ($IPandName,$Protocol,$Server)=split /\n/; #Polish your info here to the real format };
fictional, and untested ;))
GreetZ!,
- ChOas
print "profeth still\n" if /bird|devil/;
|
---|
In Section
Seekers of Perl Wisdom