I declared a variable x that gets the count(*) from a table. The table name is also defined as a variable.
What's wrong with this statment :
X=” select count(*) from ${table_name}“
then
y = `${X}${table_name}'
echo ${y}
It throws an error saying count not found.
Please... (1 Reply)
i have variables with different values as below in KSH
AU_Holiday=1
SG_Holiday=0
KR_Holiday=1
JP_Holiday=0
$country_cd is the second variable which be one of 'AU' 'SG' 'KR' 'JP' which comes in a for loop.
form that i need to derive the variable like first one and check whether it is equal... (3 Replies)
Hi all,
How to print variable value which i have assigned inside for loop
because that variable scope is local, but i want to use that variable outside for loop.
Awaiting your great help
Thanks,
Susil (1 Reply)
Dear Unix experts
I want to define a variable which contains dynmic and static part, daynamic part is the first field.
Sample of data
dddd aaaa sssss 12345
ssss 2323 234234 4242
dddd 3223 34234 54353
ssss 24234 3434 42342
dddd rwrw 423423 werwer
nawk 'BEGIN {FS=" "}{... (4 Replies)
Anyone please say what is the difference between $var and ${var} in perl
Sometimes $var used and sometimes ${var} used in same program.
Thanks in Advance,
Prabhu
---------- Post updated at 09:34 AM ---------- Previous update was at 05:59 AM ----------
Any one please clarify (1 Reply)
Dear Unix experts
Moved from "Shell Programming and Scripting "
I want to define a variable which contains dynmic and static part, daynamic part is the first field.
Sample of data
dddd aaaa sssss 12345
ssss 2323 234234 4242
dddd 3223 34234 54353
ssss 24234 3434 42342
dddd rwrw 423423... (2 Replies)
how to check
1. If variable is declared or not
2. If any value if assigned to variable or not.
in UNIX shell script (6 Replies)
Discussion started by: ace_friends22
6 Replies
LEARN ABOUT DEBIAN
mojolicious::command::generate
Mojolicious::Command::generate(3pm) User Contributed Perl Documentation Mojolicious::Command::generate(3pm)NAME
Mojolicious::Command::generate - Generator command
SYNOPSIS
use Mojolicious::Command::generate;
my $generator = Mojolicious::Command::generate->new;
$generator->run(@ARGV);
DESCRIPTION
Mojolicious::Command::generate lists available generators.
ATTRIBUTES
Mojolicious::Command::generate inherits all attributes from Mojolicious::Commands and implements the following new ones.
"description"
my $description = $generator->description;
$generator = $generator->description('Foo!');
Short description of this command, used for the command list.
"hint"
my $hint = $generator->hint;
$generator = $generator->hint('Foo!');
Short hint shown after listing available generator commands.
"message"
my $message = $generator->message;
$generator = $generator->message('Bar!');
Short usage message shown before listing available generator commands.
"namespaces"
my $namespaces = $generator->namespaces;
$generator = $generator->namespaces(['Mojo::Command::generate']);
Namespaces to search for available generator commands, defaults to Mojolicious::Command::generate and Mojo::Command::generate.
METHODS
Mojolicious::Command::generate inherits all methods from Mojolicious::Commands and implements the following new ones.
"help"
$generator->help('app');
Print usage information for generator command.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Command::generate(3pm)