02-13-2013
Thank you friend durden_tyler. It worked great . You are the expert. appreciate your help .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using festival speech synthesis system and I would like to allow user input in a browser. This will be taken by a php page which is then supposed to pass the input text to a perl script. The perl script should pass this text to the festival engine by executing a unix command. this in turn... (2 Replies)
Discussion started by: wairimus
2 Replies
2. Shell Programming and Scripting
Hello,
I'm running a perl script to execute a program through my Unix command line. The program requires a user input but I want to automatically have perl input the string. Is there a way to do this?
Thanks (1 Reply)
Discussion started by: leonard2352
1 Replies
3. Shell Programming and Scripting
Hi All,
Can we pass arguments while calling the perl script and as well as ask user input during execution of the script?
My program is as below:
I am passing arg1 and arg2 as argements to test.pl
]./test.pl arg1 arg2
Inside the test.pl I have :
print "Do you want a name ? (y/n) : ";... (2 Replies)
Discussion started by: jisha
2 Replies
4. Shell Programming and Scripting
If I want all user input to start with " : " if not display error
or what I asking is how to do if statement that control a first letter of string that we want to start with. and not worry about the rest
Thank (1 Reply)
Discussion started by: guidely
1 Replies
5. Shell Programming and Scripting
Hi, I want to list all file that match user input ( specified shell wildcard) but when I compile it dont list me
#!/usr/bin/perl -w
print "Enter Advance Search Function: ";
chomp ($func = <STDIN>);
my @files = glob("$func");
foreach my $file (@files)
{
print "$file\n";... (1 Reply)
Discussion started by: guidely
1 Replies
6. Shell Programming and Scripting
Hi, How to create array every time user input and store user input and display all array
print " Enter input "
my @input = split(' ', $input)
chmop($input = <STDIN>;
foreach ($input)
{
@array= @input;
}
print @array"\n"; (1 Reply)
Discussion started by: guidely
1 Replies
7. Shell Programming and Scripting
Hi,
I need to copy files from a source directory to a destination directory in unix.
I'm using the file::copy for the actual copy.
The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Discussion started by: Furou
6 Replies
8. Shell Programming and Scripting
Please tell me how to write a perl script that asks the user to enter words and that passes them to a variable.
In bash, the "read" command would achieve such user interaction.
#!/bin/bash
read -p "Enter files: " vFiles
However, I am looking for perl version of something equivalent... (2 Replies)
Discussion started by: LessNux
2 Replies
9. Shell Programming and Scripting
I am creating a bash that uses perl . The below code closes before the input is entered. If I run the perl as a .pl it is fine. What am I doing wrong? Thank you :).
#!/bin/bash
cd 'C:\Users\cmccabe\Desktop\wget'
wget -O getCSV.txt http://xxx.xx.xxx.xxx/data/getCSV.csv
print... (4 Replies)
Discussion started by: cmccabe
4 Replies
10. Shell Programming and Scripting
My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only contains certain characters (for example, it should only contain the characters 'u', 'a', 'g', and 'c')... (4 Replies)
Discussion started by: Eric1
4 Replies
LEARN ABOUT DEBIAN
zipios_referencecount
zipios::ReferenceCount(3) Library Functions Manual zipios::ReferenceCount(3)
NAME
zipios::ReferenceCount -
ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer.
SYNOPSIS
#include <simplesmartptr.h>
Public Member Functions
ReferenceCount ()
Constructor intializes count to zero.
ReferenceCount (const ReferenceCount &src)
Copy-constructor intializes count to zero.
const ReferenceCount & operator= (const ReferenceCount &src)
The assignment operator doesn't copy the reference count, it leaves it unchanged.
Friends
class SimpleSmartPointer< Type >
SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods.
class SimpleSmartPointer< const Type >
class FileEntry
Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and
thus needs to invoke ref() and unref() through forwarding member functions.
class Bogus
Detailed Description
template<class Type>class zipios::ReferenceCount< Type >
ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer.
Subclassing ReferenceCount is all a class needs to become ready for being handled by SimpleSmartPointer. Another way is to add a
ReferenceCount member variable to a class and write two methods 'void ref() const' and 'unsigned int unref() const' that invoke the same
methods in the ReferenceCount variable.
Definition at line 99 of file simplesmartptr.h.
Constructor & Destructor Documentation
template<class Type> zipios::ReferenceCount< Type >::ReferenceCount () [inline]
Constructor intializes count to zero.
Definition at line 122 of file simplesmartptr.h.
template<class Type> zipios::ReferenceCount< Type >::ReferenceCount (const ReferenceCount< Type > &src) [inline]
Copy-constructor intializes count to zero. It doesn't copy it from src.
Definition at line 126 of file simplesmartptr.h.
Member Function Documentation
template<class Type> const ReferenceCount& zipios::ReferenceCount< Type >::operator= (const ReferenceCount< Type > &src) [inline]
The assignment operator doesn't copy the reference count, it leaves it unchanged.
Definition at line 130 of file simplesmartptr.h.
Friends And Related Function Documentation
template<class Type> friend class FileEntry [friend]
Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and
thus needs to invoke ref() and unref() through forwarding member functions.
Definition at line 117 of file simplesmartptr.h.
template<class Type> friend class SimpleSmartPointer< Type > [friend]
SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods.
Definition at line 102 of file simplesmartptr.h.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::ReferenceCount(3)