亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? the perl weekly journal 2nd edition.html

?? a collection of mega hacking tools
?? HTML
字號:
<HTML>
<HEAD>

<TITLE>The Hacking Truths Manual: What they Don' teach you in Manuals!!!'</TITLE>

</HEAD>
<BODY LINK="#0000ff" VLINK="#800080">
<FONT FACE="Arial">
<P><b>The PERL (Almost Weekly) Manual: The 2<SUP>nd</SUP> Issue ---By Ankit Fadia
</b> </FONT><b><A HREF="mailto:ankit@bol.net.in"><FONT FACE="Arial">ankit@bol.net.in</FONT></A></b></P>
<P><b><font face="Arial"><a href="http://blacksun.box.sk">http://blacksun.box.sk</a></font></b></P>
<P><FONT FACE="Arial">_____________________________________________________________________________</P>
<P>Welcome to the second issue of The PERL (Almost Weekly) Manual. In the first issue I had given a general introduction to Perl and had covered basic Perl Topics.This Issue too concerns with nothing too Advanced but covers some Basic Perl things.This can be said to be a continuation of the first issue.Once you have a Sound Perl base, then it would become easier for you guys to understand the advanced important topics which will allow you to make some very useful programs.So I do suggest that you read these issues very carefully, so that you do not have any problems while reading the advanced topics.</P>
<B><P>Loops</P>
</B><P>Loops are very useful when you need to execute the same chunk of code or the same command over and over again. Say for example you want to print your name on the screen 5 times.You can do it by the following snippet of code:</P>
<P>$scalarvar= 'Ankit\n' ; </P>
<P>print '$scalarvar' ;</P>
<P>print '$scalarvar' ;</P>
<P>print '$scalarvar' ;</P>
<P>print '$scalarvar' ;</P>
<P>print '$scalarvar' ;</P>
<P>The Above program will print Ankit on the screen five times(Each Ankit in a new line.), it will produce the desired result but the above code is really cumbersone and is not really efficient. Perl has many looping statements like the For-Next loop, the while loop and also the do while loop, which allow one to repeat a set of statements within the body of the loop to be repeated as long as a condition is being fulfilled.The above may sound a bit weird but read on and things will definitely become clearer.</P>
<P><BR>
<B>The While Loop</P>
</B><P>Lets first go through the basic Syntax of the While loop</P>
<P>while (Condition) { Body }</P>
<P>This means that as long as the condition is true, the commands within the curly brackets i.e. the body of the while statement are executed. So now the earlier printing program can be rewritten as:</P>
<P>$count='1';</P>
<P>while ($count &lt;= 5) {</P>
<P>print 'Ankit\n' ;</P>
<P>$count++ ;</P>
<P>}</P>
<P>The while loop not only can be used to repeat a code snippet, it allows us to validate the user input and perform a certain pre defined task accouring to the result of the validation.This will become clearer after we consider the following scenario: Say you want to make a Perl Script which asks the user to enter the username and if and only if the username entered by the user is 'root' then display the system info. So to do the above we write the following script:</P>
<P>print 'Username:' ;</P>
<P>$user= &lt;&gt;;</P>
<P>chomp $user;</P>
<P>while ( $user eq "root" ) {</P>
<P>print "System Ingo goes here:";</P>
<P>}</P>
<P>Output:</P>
<P>Username:ankit</P>
<P>Now as I entered ankit as the UserName the condition was not fulfilled and the body of the while statement was not executed.So lets see what happens if we type root as the Username.</P>
<P>Output:</P>
<P><BR>
Username:root</P>
<P>System Ingo goes here:System Ingo goes here:System Ingo goe</P>
<P>es here:System Ingo goes here:System Ingo goes here:System</P>
<P>Ingo goes here:System Ingo goes here:System Ingo goes here</P>
<P>e:System Ingo goes here:System Ingo goes here:System Ingo g</P>
<P>goes here:System Ingo goes here:System Ingo goes here:Syste</P>
<P>em Ingo goes here:System Ingo goes here:System Ingo goes he</P>
<P>ere:System Ingo goes here:System Ingo goes here:System Ingo</P>
<P>o goes here:System Ingo goes here:System Ingo goes here:Sys</P>
<P>stem Ingo goes here:System Ingo goes here:System Ingo goes</P>
<P>here:System Ingo goes here:System Ingo goes here:System In</P>
<P>ngo goes here:System Ingo goes here:System Ingo goes here:S</P>
<P>System Ingo goes here:System Ingo goes here:System Ingo goe</P>
<P>es here:System Ingo goes here:System Ingo goes here:System</P>
<P>Ingo goes here:System Ingo goes here:System Ingo goes here</P>
<P>e:System Ingo goes here:System Ingo goes here:System Ingo g</P>
<P>goes here:System Ingo goes here:System Ingo goes here:Syste</P>
<P>em Ingo goes here:System Ingo goes here:System Ingo goes he</P>
<P>ere:System Ingo goes here:System Ingo goes here:System Ingo</P>
<P>o goes here:System Ingo goes here:System Ingo goes here:Sys</P>
<P>stem Ingo goes here:System Ingo goes here:System Ingo goes ^C</P>
<P>Now what did happen here? Well when the Perl program asked for the Username, I entered root, so the scalar $user has the value root. Then the perl Interprator reaches the while statement and the condition evaluates to true, the body of the while statement is executed and the messages System Ingo goes here: is displayed once. After the message is printed, once the condition is evaluated again and as it once again evalutes to true as the scalar $user has the same value i.e. root and hence the body is executed once again. Thus like this the loop continues as the condition is always true and hence it becomes an infinte loop.</P>
<P>Note: To get out of an infinite loop type CTRL + C.</P>
<P>So while writing the while statement you need to keep in mind that the loop does not become an infinte one. So in order to print the message just once in the above example the Perl code will change to:</P>
<P>print 'Username:' ;</P>
<P>$user= &lt;&gt;;</P>
<P>chomp $user;</P>
<P>while ( $user eq "root" ) {</P>
<P>print "System Ingo goes here:";</P>
<P>$user=' Xyx';</P>
<P>}</P>
<P>So now once the message is printed once, the value of the scalar $user is changed and then when the codition is evaluated, as the value of $user is Xyz the codition is not fulfilled and hence the Body of the While Statement is not executed.</P>
<B><P>The For Loop</P>
</B><P>Basic Syntax of the For Loop would be:</P>
<P>for (START; STOP ; ACTION) { Body }</P>
<P>The above statement initialluy executes the START statement and then repeatedly executes the BODY statement as long as the STOP statement remains true. The ACTION statement is executed after every iteration.</P>
<P>All this will become clearer after the following example:</P>
<P>In this example we want to print all the alphabets from a to z.</P>
<P>for($letter= 'a' ; $letter lt 'z' ; $letter++) {</P>
<P>print $letter;</P>
<P>}</P>
<P>Explanation: First of the the for statement assigns the scalar $letter the value 'a' and then check if the scalar $letter is less than 'z' and if this is true then it executes the Body of the FOR statement i.e. it prints the value of $letter. Once the value of $letter has been printed on the screen, the value of $letter is increased by 1 i.e. the Action is executed.</P>
<P>The syntax of the FOR statement is same as that used in other programming languages like C, C++ and JavaScript etc.</P>
<B><P>Arrays </P>
</B><P>You already know the first kind of Data Type, scalars. Although they are quite useful, they also have a dark side too, a single scalar can store only a single value, so in order to store 100 values we would have to have 100 scalars , which would make our programs very cumbersome, difficult to debug and difficult to understand and also difficult to manage. The answer to this problem is the use of Arrays which are a collection of related scalar values glued together. As the scalar variables begin with the $ sign, the Array variables begin with the @ sign. Thus any variable with a preceeding @ sign is an Array and any variable with the $sign is a scalar variable.</P>
<P>Lets take an example of an array:</P>
<P>@strings=('ankit', 'ankit2', ankit3');</P>
<P>is an array of strings and has 3 elements.</P>
<P>@nums=('34', '45', '65');</P>
<P>is an array of numbers and has 3 elements.</P>
<P>In Perl unlike in C an array can have mixed data types, i.e. it can contain both Numbers and strings.For example,</P>
<P>@mixed=('23','54','Ankit','52');</P>
<P>is a mixed array and has 4 elements.</P>
<P>Individual elemts of an array can be referred to my using the following syntax:</P>
<P>$newvar=$array1[x];</P>
<P>The above statement assings the scalar $newvar the value contained by the x'th element of the array, 'array1'. Note that to refer to individual elements of an array we use the $ sign instead of the @ sign.</P>
<P>Another thing to remember would be the fact that an array starts counting from zero, from that what I mean is that the first element of an array is referred to as the o'th element.The above will become clearer after the following examples:</P>
<P>@array1=('I am first', 'I am second' , 'I am third', 'I am fourth');</P>
<P>$var1=$array1[0];</P>
<P>$var2=$array1[1];</P>
<P>$var3=$array1[2];</P>
<P>$var4=$array1[3];</P>
<P>print $var1;</P>
<P>print $var2;</P>
<P>print $var3;</P>
<P>print $var4;</P>
<P>OutPut:</P>
<P>I am firstI am secondI am thirdI am fourth</P>
<P>This means that the o'th element is the first element in the array and the 1'th element is the 2'nd element in the array of values.</P>
<P>For Example,</P>
<P>@mixed=('23','54','Ankit','52');</P>
<P>is a mixed array and has 4 elements</P>
<P>Now the above mixed array contains 4 values, but Perl starts counting from 0, this means that $mixed[0] is 23 and $mixed[1] is 54 and $mixed[2] is Ankit and so on.</P>
<P>NOTE: In $array[n], the n is known as the indice.</P>
<P><BR>
In Perl the indices can also be negative. For example,</P>
<P>$array[-2];</P>
<P>is the 2<SUP>nd</SUP> last element </P>
<P>$array[-1];</P>
<P>is the last element </P>
<B><P>THE FOR EACH LOOP: Moving through an array</P>
</B><P>In the above section, I had given an example in which we print various elements of an array by writing multiple print statements.That again is quite cumbersome and use of the For-Each loop makes your Perl programs easier to use i.e more efficient.</P>
<P>The Basic Syntax of the For Each Loop would be the following:</P>
<P>foreach SCALAR (ARRAY) { BODY }</P>
<P>The above statement executes the commands in the BODY once for every ARRAY element. The current array element is placed in SCALAR.</P>
<P>Lets take the following example in which we need to move through the entire array and print all it's values.</P>
<P>@os = ('Windows', 'Linux' , 'MacOS' , 'BeOS');</P>
<P>print 'Now Printing known Operating Systems:' ;</P>
<P>foreach $os(@os) {</P>
<P>print $os;</P>
<P>}</P>
<P>Output:</P>
<P>Now Printing known Operating Systems:WindowsLinuxMacOSBeOS</P>
<P>The for each loop is pretty self explanatory and is very useful for going through the contents of an array and printing them.</P>
<B><P>Functions Associated with Arrays</P>
</B><P>Perl comes with many in built functions that allow us to manipulate data in an array.</P>
<B><P>push( ) and pop( )</P>
</B><P>push( ARRAY, LIST) appends the LIST of data values to the end of an array.</P>
<P>This means that for example,</P>
<P>@array1=('123','456');</P>
<P>push( @array1, 789);</P>
<P>print $array1[-1];</P>
<P>prints 789 on the screen and</P>
<P>@array1=('123','456');</P>
<P>push( @array1, 789,abc);</P>
<P>print $array1[-1];</P>
<P>prints abc on the screen.</P>
<P>pop(ARRAY) removes and returns the last element of the ARRAY.</P>
<P>As strings have the function chop(), arrays have the pop() function.</P>
<B><P>unshift( ) and shift( )</P>
</B><P>unshift( ARRAY, LIST) appends the LIST of elements to the beginning of the ARRAY.</P>
<P>It can be said to be the opposite of push( ).</P>
<P>shift( ARRAY) removes and returns the first element of the Array.</P>
<P>It can be said to be the opposite of pop( ).</P>
<B><P>splice( )</P>
</B><P>The basic syntax of this function would be:</P>
<P>splice(ARRAY,OFFSET,LENGTH,LIST) removes and returns LENGTH elements of ARRAY starting from OFFSET replacing them with LIST.</P>
<P>For example,</P>
<P>@array1=('1','2','3','4');</P>
<P>print @array1;</P>
<P>splice(@array1,2,2,a,a);</P>
<P>print @array1;</P>
<P>Output:</P>
<P>123412aa</P>
<P>The LENGTH and LIST arguments can be removed.The following examples make it more clear:</P>
<P>splice(@array1,2);</P>
<P>removes and returns all elements after 2 including 2.</P>
<P>splice(@array1, 2, 2);</P>
<P>removes and returns $array1[2] and $array1[3].</P>
<B><P>Default Variables</P>
</B><P>Perl is full of default variables, that one does not even have to define and are automatically defined by Perl and assigned a value.Well lets move on to the first of those.</P>
<B><P>$_</P>
</B><P>"The Programmer said that the programmer will start programming as soon as the programmer gets the Perl Editor"</P>
<P>Read the above sentence and then read the below sentence:</P>
<P>"The Programmer said that he will start programming as soon as he gets the Perl Editor"</P>
<P>In the second sentect pronouns like he replaced the nouns and made the sentence better.</P>
<P>Perl too unlike other programming languages has a default variable '$_' which solves the above problem.Lets take the example of the FOR EACH loop to undertand more about the $_ variable.</P>
<P>Normally you would write something like the following:</P>
<P>foreach $array(@array) { print $array; }</P>
<P>Now with the use of the Default Variable $_ the above code will condense to:</P>
<P>foreach(@array){print;}</P>
<P>So what exactly happened? Well when the loop has no scalar before it, it uses the deafult variable $_ instead and the print function if not given any argument prints the value contained by $_.</P>
<P>Thus as a result,</P>
<P>print($_); and print; are the same and</P>
<P>chomp($_); and chomp; are the same.</P>
<P>Well that wraps up this week's Perl Journal. Next Week's issue is going to be on I\O and I will be discussing files and other I\O.</P>
<P>Ankit Fadia</P>
</FONT><P><A HREF="mailto:ankit@bol.net.in">ankit@bol.net.in</A></P>
<FONT FACE="Arial"><P>To receive more tutorials on Hacking,Cracking, Perl, C++ and Viruses/Trojans and lottsa more join my mailing list:</P>
<P>Send an email to programmingforhackers-subscribe@egroups.com to join it.</P>
<P>Visit my Site to view all tutorials written by me at: <a href="http://www.crosswinds.net/~hackingtruths">http://www.crosswinds.net/~hackingtruths</a></P>

</FONT></BODY>
</HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久天天| 成人小视频在线| 一区二区在线观看av| 久久久久国产精品麻豆ai换脸| 337p亚洲精品色噜噜噜| 欧美巨大另类极品videosbest| 精品视频色一区| 制服视频三区第一页精品| 欧美顶级少妇做爰| 欧美一区二区在线播放| 日韩欧美精品在线| 久久久精品天堂| 欧美激情一区在线观看| 亚洲少妇30p| 亚洲大型综合色站| 蜜桃精品视频在线| 国产成人精品亚洲777人妖| 成人av电影观看| 日本高清视频一区二区| 欧美一卡2卡3卡4卡| 国产亚洲欧美激情| 一区二区在线观看免费视频播放| 亚洲午夜久久久久| 强制捆绑调教一区二区| 国产精品一二三| 91色视频在线| 亚洲精品免费视频| 丝袜诱惑制服诱惑色一区在线观看| 麻豆一区二区三区| 99国产精品99久久久久久| 欧美日韩一区二区三区在线看| 日韩视频免费直播| 亚洲婷婷综合色高清在线| 午夜日韩在线观看| 成人一区二区三区视频| 欧美色网一区二区| 国产人久久人人人人爽| 亚洲国产va精品久久久不卡综合 | 懂色av一区二区三区免费看| 成a人片亚洲日本久久| 欧美精品在线一区二区| 亚洲国产精华液网站w| 调教+趴+乳夹+国产+精品| 国产成人精品1024| 91精品国产色综合久久久蜜香臀| 国产亚洲成av人在线观看导航| 亚洲午夜三级在线| 国产精品91xxx| 91精品国产综合久久香蕉的特点| 亚洲视频中文字幕| 国产一区在线精品| 欧美日本一道本| 亚洲丝袜精品丝袜在线| 国产大陆a不卡| 在线成人小视频| 亚洲另类一区二区| 成人av网站在线观看| 久久亚洲精品国产精品紫薇| 日韩电影在线看| 欧美视频在线观看一区| 亚洲激情图片一区| 91美女片黄在线| 国产精品久久久久久久久动漫| 不卡一区二区中文字幕| 欧美精品一区二区不卡 | 麻豆精品视频在线| 欧美日韩一卡二卡三卡 | 韩国在线一区二区| 欧美一级片在线看| 婷婷久久综合九色国产成人| 色噜噜偷拍精品综合在线| 国产精品国产三级国产专播品爱网 | 日韩久久一区二区| 99re亚洲国产精品| 亚洲色图视频免费播放| 99re8在线精品视频免费播放| 欧美韩国日本综合| 成人av午夜影院| 亚洲色图.com| 欧美色视频一区| 日本欧洲一区二区| 日韩欧美一级二级| 国产一区二区在线观看免费| 国产午夜精品在线观看| 成人性生交大片免费看在线播放| 日本一区二区久久| 色欧美日韩亚洲| 亚洲国产综合91精品麻豆| 欧美日本一区二区在线观看| 国产成人综合亚洲91猫咪| 国产精品久久国产精麻豆99网站 | 亚洲人成电影网站色mp4| 91免费观看视频| 图片区小说区区亚洲影院| 日韩午夜小视频| 成人午夜电影网站| 亚洲美女在线国产| 69p69国产精品| 国产精品一二三四区| 亚洲免费色视频| 日韩一区二区三区四区| 国产精品综合一区二区三区| 中文字幕一区二区三中文字幕| 色诱亚洲精品久久久久久| 日本不卡免费在线视频| 欧美国产综合一区二区| 欧美中文字幕亚洲一区二区va在线 | 国产精品中文字幕欧美| 亚洲精品中文字幕乱码三区| 欧美一区二区在线免费观看| 成人h动漫精品| 婷婷久久综合九色综合绿巨人 | 精品成人一区二区| 不卡av免费在线观看| 日本最新不卡在线| 亚洲欧洲三级电影| 精品黑人一区二区三区久久| 色哟哟在线观看一区二区三区| 久久av老司机精品网站导航| 亚洲柠檬福利资源导航| 日韩精品最新网址| 欧美亚洲综合色| 成人的网站免费观看| 久久成人免费电影| 午夜不卡av在线| 久久久国际精品| 精品久久久久久亚洲综合网| 在线免费精品视频| 成人小视频在线| 国产一区二区三区四区在线观看| 亚洲精品国产a久久久久久| 久久久久久亚洲综合| 欧美剧情片在线观看| 91九色最新地址| 韩国女主播一区| 日韩高清在线不卡| 国内精品国产成人| 亚洲国产成人高清精品| 亚洲日本电影在线| 国产精品久久久久一区二区三区共 | 欧美日韩一二区| 91女厕偷拍女厕偷拍高清| 国产黄人亚洲片| 国产精品一区三区| 国产中文字幕一区| 久久99精品久久久久久动态图| 亚洲成人综合视频| 亚洲一区二区三区四区五区中文| 国产精品久久久久久久久久免费看| 久久无码av三级| 国产网红主播福利一区二区| 久久品道一品道久久精品| 欧美v国产在线一区二区三区| 在线播放欧美女士性生活| 69久久夜色精品国产69蝌蚪网| 欧美喷水一区二区| 欧美一区二区视频在线观看| 欧美日韩国产精选| 欧美丝袜丝交足nylons| 欧美三区免费完整视频在线观看| 在线观看免费成人| 欧美色倩网站大全免费| 在线观看91av| 久久综合久久综合久久综合| 国产天堂亚洲国产碰碰| 国产精品欧美一区二区三区| 综合久久久久久| 亚洲国产视频在线| 久久精品国产99久久6| 国产69精品久久777的优势| 99精品视频在线观看| 欧美日韩一区成人| 精品国产欧美一区二区| 国产精品你懂的在线欣赏| 亚洲精品乱码久久久久久| 日韩电影免费在线| 国产精品一区二区果冻传媒| av网站一区二区三区| 欧美日韩国产一区| 久久先锋影音av| 一区在线观看免费| 午夜av一区二区三区| 国产美女在线观看一区| 94-欧美-setu| 欧美一级国产精品| 亚洲欧美一区二区在线观看| 婷婷国产v国产偷v亚洲高清| 成人免费看黄yyy456| 欧美性受极品xxxx喷水| 久久久综合视频| 亚洲一区二区三区四区在线免费观看| 日韩黄色片在线观看| 丰满亚洲少妇av| 欧美一级淫片007| 国产在线视频不卡二| 91久久精品一区二区三| 精品久久久久久久久久久院品网| 亚洲人成伊人成综合网小说| 精品亚洲aⅴ乱码一区二区三区| 91视频免费观看|