Search Results

Search: Posts Made By: jisha
Forum: Programming 01-27-2011
26,592
Posted By Corona688
You usually don't include ".c" files. That just...
You usually don't include ".c" files. That just adds the contents of that file to yours raw, so you might as well have just copy-pasted it in the first place.

If you use header files and link...
1,567
Posted By k_manimuthu
Yes, this is possible for the mentioned module
Yes, this is possible for the mentioned module
7,606
Posted By Chubler_XL
Some pointers here...
Some pointers here http://www.devdaily.com/blog/post/perl/use-backtick-operator-access-system-commands
57,266
Posted By k_manimuthu
my %delim; # Declare the hashes for ($file[0]...
my %delim; # Declare the hashes
for ($file[0] =~ m{[^\w\n\.]+}g)
{
$delim = $&;
$max++;
if ($max > 0)
{
$destr = $&; # assign the delimiter string to a variable
}
}
57,266
Posted By k_manimuthu
For find the delimiter, we don't to need analyze...
For find the delimiter, we don't to need analyze the full file. we read the first line of the file is enough. Which string appears maximum time that treaded as the delimter.

The above code @file...
1,092
Posted By k_manimuthu
Yes, by using of quotemeta function it is...
Yes, by using of quotemeta function it is possible

my $delim = '|';
print "delim = <$delim> \n";
# Add escape sequence non-word characters
$delim=quotemeta($delim);
my $word = "I|know|you";...
5,786
Posted By fpmurphy
Change my $YN = <>; to my $YN =...
Change

my $YN = <>;

to

my $YN = <STDIN>;
3,554
Posted By pludi
Sorry, my bad, you'll have to chomp the input,...
Sorry, my bad, you'll have to chomp the input, otherwise it'll include the newline character in the search:
print "Enter the Name: ";
my $Name = <>;
chomp $Name;
print "Word is $Name";

open...
3,554
Posted By anurag.singh
cat AIDNameList.txt | grep "${Name}Aid" | while...
cat AIDNameList.txt | grep "${Name}Aid" | while read line
do
print $line;
done
3,554
Posted By pludi
Much simpler Perl version print "Enter the...
Much simpler Perl version
print "Enter the Name: ";
my $Name = <>;
print "Word is $Name";

open my $FH, '<', 'AIDNameList.txt' or die "Can't read AIDNameList: $!";
print grep { /$Name/ }...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 07:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy