perlunity.de - PERL | JAVASCRIPT | PHP | MySQL | APACHE



#!/COMMUNITY

Members: 5374
davon online: 1
weitere User: 26
Click for quality!




10.02.2012 / 20:03

Community-Member werden   |   Paßwort vergessen   |   OnlineMonitor (1) Wer ist online ... OnlineMonitor starten !
     

 

Home


PERLscripts


PHPscripts


JAVAscripts


Hilfreiches


Links2www


Newscenter


Community


Interna




Community  »  Perl: Allgemeines Forum zur Themenübersicht Themensuche Themenansicht in Thread-Modus


Beitragunbek. Synthax: $usage = <<EOT
Seitenanfang
Huhu ihr da draußen!!

Könnt ihr mir helfen?! Ich suche schon ne Weile in meinen lieben Perlbüchern was GENAU der unten aufgeführte Synthax macht. Leider habe ich noch nichts genaueres gefunden. Könnt ihr mir vielleicht helfen?

<code>
$usage = <<EOT;
usage cpgi130 [sequencefile] [GCC=X] [OE=X] [LENGTH=X] [HELP]
example cpgi130 NT_000000.seq LENGTH=200
EOT

$helpmenu = <<EOT;
GCC set \%GC of lower limit (50-70,default value:55\%)
OE set ObsCpG/ExpCpG of lower limit (0.60-1.00,default value:0.65)
LENGTH set length of lower limit (200-1500,default value:500bp)
EOT

$credit = <<EOT;
CpG island searcher command line version
Ver 1.3 released 05/21/03
by Takai D. & Jones PA.

EOT
</code>

was ich weiß ist, dass das Script Paramenterwertde übergeben bekommen kann (1. Passage, aber was genau macht "usage", "example"?). Was machst der Synthax <<EOT ........ EOT, weiße ich damit einer Variablen einen String + formatierung zu?!

schon mal im Voraus danke!!

Datum: 05.10.2005-11:58

Beitragre: unbek. Synthax: $usage = <<EOT
Seitenanfang
Hallo
Guckst du in "perldoc perldata"
A line-oriented form of quoting is based on the shell
"here-document" syntax. Following a "<<" you specify a
string to terminate the quoted material, and all lines
following the current line down to the terminating string
are the value of the item. The terminating string may be
either an identifier (a word), or some quoted text. If
quoted, the type of quotes you use determines the treat-
ment of the text, just as in regular quoting. An unquoted
identifier works like double quotes. There must be no
space between the "<<" and the identifier, unless the
identifier is quoted. (If you put a space it will be
treated as a null identifier, which is valid, and matches
the first empty line.) The terminating string must appear
by itself (unquoted and with no surrounding whitespace) on
the terminating line.

Gruss Kristian

Datum: 05.10.2005-14:25

-






-
-