I would assume (without seeing any actual error information) that you are getting the same answer for two reasons.
1.) Your rand() call isn't working correctly. (Again, we would need error information.)
2.) You are doing
in several if/elif statements. You really should(tm) be doing ranges, not 'first match wins' -- ie, checking if the rand() number is between 0 and 9 executes one action, 10 to 10 another, and so on.
For a multi-boot setup (win2K, XP & SuSE) over 3 drives, where should Boot Magic be installed to? And does it matter which o/s installs it? (3 Replies)
i am working under this sysytem SunOS sparc SUNW,UltraAX-i2
Some system on this server creates a file named like this.
Elem_ee.xml.gz
Elem_ee.xml.gz.magic
In order to look into Elem_ee.xml.gz.magic, i first renamed Elem_ee.xml.gz.magic
to Elem_ee.xml.gz and tried to unzip it. but returns... (3 Replies)
Dear All,
i have a SCSI hard disk drive i'm installing on it solaris 5 and the workstation is sun sparc, i made an image of this H.D using Norton Ghost 6, so i took off the SCSI H.D from the sun workstation and put it on a Compaq server then i booted the server from the Norton Ghost floppy disk... (0 Replies)
Hi,
I have this line in my script, and works perfect!
tran= "$(sed = "$fname" | sed "/./N; s/\n/: /" | sed -n "${beg},${end}p")"
$fname its a file, and gets multilines between beg and end.:
Something like this:
1: line a
2: line b
3: line c
But now, I want insert in the end of each... (9 Replies)
I want to become an expert @ using sed, but i do not have enough time...
Atm I have a repository in my apt/sources.list but it is commented out since i do not want to install packages from it (backtrack repository) except the exploitdb package.
I would like make a command, lets say... (5 Replies)
My new magic wand just came. It looks great. Looking at it, it looks like it is carved by hand from a solid piece of wood. It could easily serve as a prop in a Harry Potter film. But it is actually a high tech appliance.
A built-in accelerometer can detect how you are moving the wand. ... (2 Replies)
Hello all,
I have an inherited an old ugly script I'm trying to clean up a bit.
What I am currently working on is a line like the following:
Complication=" and ta.secID = 011222 and upper(ta.proc_ctrl_no) != 'IMPACT'";;
I just want to combine a search for lines that begin with... (5 Replies)
Discussion started by: blip42
5 Replies
LEARN ABOUT CENTOS
ppi::token::magic
PPI::Token::Magic(3) User Contributed Perl Documentation PPI::Token::Magic(3)NAME
PPI::Token::Magic - Tokens representing magic variables
INHERITANCE
PPI::Token::Magic
isa PPI::Token::Symbol
isa PPI::Token
isa PPI::Element
SYNOPSIS
# When we say magic variables, we mean these...
$1 $2 $3 $4 $5 $6 $7 $8 $9
$_ $& $` $' $+ @+ %+ $* $. $/ $|
$\ $" $; $% $= $- @- %- $) $#
$~ $^ $: $? $! %! $@ $$ $< $>
$( $0 $[ $] @_ @* $} $, $#+ $#-
$^L $^A $^E $^C $^D $^F $^H
$^I $^M $^N $^O $^P $^R $^S
$^T $^V $^W $^X
DESCRIPTION
"PPI::Token::Magic" is a sub-class of PPI::Token::Symbol which identifies the token as "magic variable", one of the strange and unusual
variables that are connected to "things" behind the scenes.
Some are extremely common, like $_, and others you will quite probably never encounter in your Perl career.
METHODS
The class provides no additional methods, beyond those provided by it's PPI::Token::Symbol, PPI::Token and PPI::Element.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.3 2011-02-26 PPI::Token::Magic(3)