hi people,
I have a function which I am passing a stream which is basically postfix notation
if(isdigit(in.peek()))
{
in >> number;
nums.push(number);
}
else if (strchr("+-*/", in.peek( )) != NULL)
{
in >> symbol;
do_operation(symbol, nums, okay);
}
... (1 Reply)
Hi,
I want to search for a return code of -3. Using grep "-3" *.* is giving a syntax error. Please suggest as to how can we search for this pattern using grep.
Thanks,
Krishna (2 Replies)
Hi, does anyone know how to ignore whether a number is negative in a script. E.g. if I have a variable that contains -1200, how do I ignore the minus sign? (1 Reply)
Hi All,
Just faced an interesting thing in HP-UX. I was dividing 2955334616 / 2 by using echo `expr 2955334616 / 2` , and this ofcourse which expects 1477667308 to be returned. But I am getting -669816340 and I am :wall: how exactly this is possible. It is not one of the compliments (Ones or... (4 Replies)
Hello all,
I'm new to the forums and hope to be able to contribute something useful in the future; however I must admit that what has prompted me to join is the fact that currently I need help with something that has me at the end of my tether.
I have a PDB (Protein Data Bank) file which I... (13 Replies)
I am using a small script to divide some numbers in a given file and display the output in another file. I am getting the following error
basename: invalid option -- '5'
Try `basename --help' for more information.
(standard_in) 1: syntax error
The script is :
#!/bin/bash
for i in `cat... (4 Replies)
Hi All,
I am trying to compare two negative numbers using awk on linux.But it is giving me wrong result.Same code is working perfectly on solaris.
print ((0+new_price) < MIN_PRICE)
e.g If I try to compare -1.32(new_price) and -500(min_price) using "<" operator, output is 1 i.e true.
... (5 Replies)
Hi ALL,
I am having semi column separated file as below. I am having negative values for the records starting with 11095. How can I convert that positive number
I tried this below seems not working
sed 's/ \(*\)$/ -\1/;t;s/\(.*\)-/\1/ myfile
myfile... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies
LEARN ABOUT DEBIAN
text::password::pronounceable
Text::Password::Pronounceable(3pm) User Contributed Perl Documentation Text::Password::Pronounceable(3pm)NAME
Text::Password::Pronounceable - Generate pronounceable passwords
SYNOPSIS
# Generate a pronounceable password that is between 6 and 10 characters.
Text::Password::Pronounceable->generate(6, 10);
# Ditto
my $pp = Text::Password::Pronounceable->new(6, 10);
$pp->generate;
DESCRIPTION
This module generates pronuceable passwords, based the the English digraphs by D Edwards.
METHODS
new
$pp = Text::Password::Pronounceable->new($min, $max);
$pp = Text::Password::Pronounceable->new($len);
Construct a password factory with length limits of $min and $max. Or create a password factory with fixed length if only one argument
is provided.
generate
$pp->generate;
$pp->generate($len);
$pp->generate($min, $max);
Text::Password::Pronounceable->generate($len);
Text::Password::Pronounceable->generate($min, $max);
Generate password. If used as an instance method, arguments override the factory settings.
HISTORY
This code derived from mpw.pl, a bit of code with a sordid history.
o CPAN module by Chia-liang Kao 9/11/2006.
o Perl cleaned up a bit by Jesse Vincent 1/14/2001.
o Converted to perl from C by Marc Horowitz, 1/20/2000.
o Converted to C from Multics PL/I by Bill Sommerfeld, 4/21/86.
o Original PL/I version provided by Jerry Saltzer.
LICENSE
Copyright 2006 by Best Practical Solutions, LLC.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.10.1 2010-08-16 Text::Password::Pronounceable(3pm)