hi,
i am trying this while loop and i only want that it should only read food as pizza....no other entry should be taken here.
this is what the result i get after running this particular script, that the loop does not end and tht i have to terminate the session.
this loop dpes not end as the way it should have ended.
thanks
kullu
Last edited by Scott; 07-17-2012 at 04:48 AM..
Reason: Use code tags, please.
Hi,
iam having the file as follows:
ABCDEFGH|0987654321234567
ABCDEFGH|0987654321234523
ABCDEFGH|0987654321234556
ABCDEFGH|0987654321234545
POIUYTRE|1234567890890678
POIUYTRE|1209867757352567
POIUYTRE|5463879088797131
POIUYTRE|5468980091344456
pls provide me the split command
... (14 Replies)
I want to compare some files.
say iam having 2 sets of files ,each is having some 10 files.
ie,
file1
1a.txt
1b.txt
1c.txt
...
file2
2a.txt
2b.txt
2c.txt
...
i need to read line by line of this files parralley..
ie.. i want to read file1 first line that is 1a.txt and file2... (2 Replies)
# set date to your spec: this is month/day/yr/hr/min/sec:
sysdate=`date '+%m/%d/%Y-%H:%M:%S'`
# get the last line before the history file is modified
tail -1 /tmp/hosthistory.txt |while read lastdate mydevices
do
echo $lastdate
echo $mydevices
done
LIST = 'ypcat hosts|| sort... (11 Replies)
Hi All,
How do I code a password with multiple special characters in it.
Example: password is P#utar&@
None of the belwo options worked
1. passwd="P#utar&@"
2. passwd='P#utar&@'
Any help will be greatly appreciated. (3 Replies)
I was trying out some new series to get it print
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
and the seond one is
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
but was unable to get the result. (5 Replies)
Weather::Com::DayForecast(3pm) User Contributed Perl Documentation Weather::Com::DayForecast(3pm)NAME
Weather::Com::DayForecast - class representing a forecast for one day
SYNOPSIS
[...]
my @locations = $weather_finder->find('Heidelberg');
my $forecast = $locations[0]->forecast();
my $tomorrow = $forecast->day(1);
print "Forecast for tomorrow:
";
print " - tomorrow it's the ", $tomorrow->date()->date(), "
";
print " - sunrise will be at ", $tomorrow->sunrise()->time(), "
";
print " - maximum temperature will be ", $tomorrow->high(), "
";
DESCRIPTION
Via Weather::Com::DayForecast objects one can access the weather forecast for one specific day.
This class will not be updated automatically with each call to one of its methods. You need to call a method of your Weather::Com::Forecast
object to get updated objects.
CONSTRUCTOR
You usually would not construct an object of this class yourself. This is implicitely done when you call the "day(number of day)" or the
"all()" method of a Weather::Com::Forecast object.
METHODS
date()
Returns a Weather::Com::DateTime object containing the date the forecast is for.
high()
Returns the maximum temperature that will be reached at daytime.
For day 0 (today), this will be 'N/A' when it's after noon...
There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight,
day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast!
I have not investigated this issue further, yet. If anyone has, please inform me!
low()
Returns the minimum temperature that will be reached at night.
sunrise()
Returns a Weather::Com::DateTime object containing the time of sunrise.
sunset()
Returns a Weather::Com::DateTime object containing the time of sunset.
day()
Returns a Weather::Com::DayPart object with all data belonging to the daytime.
For day 0 (today), this will be "undef" when it's after noon...
There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight,
day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast!
I have not investigated this issue further, yet. If anyone has, please inform me!
night()
Returns a Weather::Com::DayPart object with all data belonging to the night.
AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de>
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at
the application programming guide of weather.com (<http://www.weather.com/services/xmloap.html>)!
perl v5.8.8 2007-07-09 Weather::Com::DayForecast(3pm)