Tag Archives: WM

Neil Woodford Buys Wm. Morrison Supermarkets

By Harvey Jones, The Motley Fool

Filed under:

LONDON — It’s time to go shopping for shares again, but where to start? There are loads of great stocks to choose from, and I’ve got my wallet out. So should I buy WM. Morrison Supermarkets ?

Supermarket purchase
When dividend maestro Neil Woodford takes a major position in a FTSE 100 stock, it is worth taking notice. He has just bought a fat slice of WM. Morrison Supermarkets, making him the company’s largest investor at 7.69% (up from 5.33%). So what’s so special about Morrisons? And should I buy it as well?

Woodford is picking and choosing his supermarkets carefully these days. Last year, he sold out of the U.K.’s biggest supermarket chain Tesco  , complaining that it wasn’t the defensive stock he had hoped. But is Morrisons? Is any U.K. retailer defensive in these troubled times? Life is tough for U.K. grocery chains as their customers’ wages fall behind inflation, but it has been particularly tough for Morrisons, which has come off worse in a dogfight with discount chains Aldi and Lidl. Its most recent trading update, published in January, showed a 2.5% drop in like-for-like sales. That was enough for fund manager BlackRock, which ditched more than half its 10% stake. Enter Woodford.

Horses for courses
It has been a dismal five years for Morrisons, the U.K.’s fourth-largest supermarket. Its share price is still down 10% on five years ago, although Tesco also posted a 5% drop, whileSainsbury’s  barely managed 1% growth. Morrisons is struggling to reverse its recent slide in sales this year, although at least it avoided the horsemeat scandal, unlike rivals Tesco, Asda, Lidl, Iceland, the Co-Op, and Aldi, who were all forced to withdraw products. Yet Sainsbury‘s was the only supermarket to race ahead as a result, registering a 4.6% rise in sales in the 12 weeks to Feb. 17, according to data from Kantar Worldpanel. Blameless Morrisons suffered a 1.3% sales drop, losing yet more ground on its rivals. So what does Woodford see in it?

As a value investor, he may be impressed by Morrison’s turnaround potential. Management has blamed the recent slide on its lack of smaller convenience stores and Internet no-show, and is working to reverse both omissions and has claimed some success for its 10,000-product Own Brand relaunch. Its financial position is strong, with net debt of around 2.1 billion pounds, and it is running a share buyback program. Morrison currently yields 4.1%, covered 2.4 times, and management has a progressive dividend policy. That is a more generous return than Tesco, which yields 3.9% covered 2.4 times, but less than Sainsbury’s, which yields a meaty (but not horsemeaty) 4.7%, covered 1.7 times.

A reason to buy Morrisons
Given its recent travails, Morrisons is trading on a tempting valuation of 10.3 times earnings, roughly in line with Tesco but cheaper than admired rival Sainsbury’s at 12.2 times. An undemanding valuation and attractive dividend are the most tempting reasons to buy Morrisons. But with projected earnings-per-share growth of …read more
Source: FULL ARTICLE at DailyFinance

Problem writing/wrapping files under folder using perl

By Optimus81

I have a script which generates env setup xml file by reading path.It read the path and checks if there is any file/dir present recurseively.
If a file is found under sub directory then it will read the file and the values from the file are passed to generate xml format.

Problem is if i have a file in sub directory, then in xml format, these file information should come under sub directory name but current script
write all the file information under only main sub directory level2.
Ex :
Path : C:SDSetupData
In the above path, there will sub dir level1 : UAINI
C:SDSetupDataUAINI
under this level1, there will another level2 of sub dir : Base
C:SDSetupDataUAINIBase
under this level2, there will 3 sub dir’s level3 :

Code:

A1 : 1-A.bat,1-AD.bat files
B2 : 2-BDD.bat, 2-BEE.bat files
W1 : 1-WM.bat, 2-WMA.bat files


each of these sub dir’s will have 1 or more files
file content will be:

Code:

start putty -ssh -P 22 10.24.04.20A -Q root -pw olp.ikmj


now after running the main script,i get the xml format with the content under Base dir as container(level2). Instead, should get xml format
with having 3 containers and each container having sub dir’s level3 name and it’s file content.

Code:

#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
my $basedir = "C:/SD/Setup/Data/";
my $envname = "HMDS_EnvSetup";
my $counter;
my @basedir;
open( my $resultfile, '>', 'C:SDSetupResultsresultfile.dat' ) or die "resultfile.dat: $!";
# the next bit should only be written one time per xml output file:
print $resultfile <<EOH;






EOH
my @containers;
my $indent = '';
#print scalar(@containers);
find( &wanted, $basedir );
if ( @containers ) {
for ( 1 .. $#containers ) {
print $resultfile "$indentn";
chop $indent;
}
}
print $resultfile "nn";
sub wanted {
return if ( /^..?$/ );
if ( -d ) {
my ( $root, @levels ) = split m{/}, $File::Find::dir;
print "levels are :@levelsn";
print "Containers are : @containersn";
if ( @levels >= @containers ) { # push one level deeper
$indent .= " ";
print $resultfile "$indentn";
$counter++;
}
elsif ( @levels <= @containers ) { # pop out one level
print $resultfile "$indentn";
chop $indent;
}
elsif ( $levels[-1] ne $containers[-1] ) { # same level, different path
print $resultfile "$indentn";
print $resultfile "$indentn";
}
@containers = @levels;
}
elsif ( -f _ and -s _ ) {
process_file();
}
}
sub process_file {
my $filename = $_;
open my $fh, '<', $filename or die "$File::Find::name : $!n";
my @linecolumns;
while () {
chomp;
s/ /,/g;
@linecolumns=split(',',$_);
}
print $resultfile <<ETX
$indent
$indent
$indent $filename
$indent SSH
$indent $linecolumns[5]
$indent $linecolumns[4]
$indent Default Settings
$indent $linecolumns[6] $linecolumns[7] $linecolumns[8] $linecolumns[9]
$indent
$indent
$indent
$indent
$indent
$indent
$indent
$indent
ETX
;
}


now getting output as :

Code:







1-WM.bat
SSH
19.20.54.21
221
Default Settings
-l root -pw uy.ju

2-WMA.bat
SSH
19.20.54.21
221
Default Settings
-l root -pw uy.ju

2-BBD.bat
SSH
98.28.54.21
27
Default Settings
-l root -pw direct.nA

2-BBE.bat
SSH
18.38.58.88
28
Default Settings
-l root -pw direct.2A

1-A.bat
SSH
10.24.04.20A
22
Default Settings
-l root -pw olp.ikmj

1-AD.bat
SSH
09.25.05.10B
11
Default Settings
-l root -pw llb.ujyh


Attached png file to show how current output looks like.

Instead am trying to get like this : please note i added container tag manually here to get each sub dir’s level3 dir name/wrapper.

Code:







#-----This added manually

1-WM.bat
SSH
19.20.54.21
221
Default Settings
-l root -pw uy.ju

2-WMA.bat
SSH
19.20.54.21
221
Default Settings
-l root -pw uy.ju

#-----This added manually

#-----This added manually

2-BBD.bat
SSH
98.28.54.21
27
Default Settings
-l root -pw direct.nA

2-BBE.bat
SSH
18.38.58.88
28
Default Settings
-l root -pw direct.2A

#-----This added manually

#-----This added manually

1-A.bat
SSH
10.24.04.20A
22
Default Settings
-l root -pw olp.ikmj

1-AD.bat
SSH
09.25.05.10B
11
Default Settings
-l root -pw llb.ujyh

#-----This added manually


Source: FULL ARTICLE at The UNIX and Linux Forums