What does -> mean in the PERL Programming language?
369807
-> is the in-place dereference operator. It is most commonly used in OOP.\n\n$a->{'b'} is exactly the same as $$a{'b'}\n\n-> can also be used for 'method' calls with blessed objects.\n$a->function(); is exactly the same as module::function($a);\n\nAn 'object' is Perl is actually just a reference to a variable, usually a hash (associative array). As such, whenever you want to use an object, you have to dereference it (othewise perl doesn't know what to do).\n\nSee the following in perldoc:\nhttp://perldoc.perl.org/perlop.html - Perl operators\nhttp://perldoc.perl.org/perlref.html - Perl references\nhttp://perldoc.perl.org/perlobj.html - Perl objects\nhttp://perldoc.perl.org/perlmod.html - Perl modules
195396
What's with the ... ? Is that a space for a number, are you supposed to guess whether to use the + or the x ? I don't get it, I think I'm gonna cry :~(
523097
The ∞ mean infinity.  So, it goes from -infinity to 8, not including 8 itself.  And the other one goes from 5 to infinity, including 5.\n\nThe [ ] means that you include that end point, whereas ( ) means you don't include that point.
723079
you just missed a slight bit on your code as you are not putting any html info.\n\nMODIFIED CODE\n\n#!/usr/bin/perl\n\n#use the CGI libary\nuse CGI qw(:standard);\n#print html header\nprint header,\n#start the html code\nstart_html(-header=>'Contents',-bgcolor=>'white');\n\n#get each enviroment var\nforeach $var (sort(keys(%ENV))) {\n$val = $ENV{$var};\n$val =~ s|&#92;n|&#92;&#92;n|g;\n$val =~ s|"|&#92;&#92;"|g;\nprint "${var}=&#92;"${val}&#92;"&#92;n";\n#put a html break\nprint"<br>";\n}\n#end the html page\nend_html;\n\nHTML output\n\nALLUSERSPROFILE="C:&#92;Documents and Settings&#92;All Users" \nCOMMONPROGRAMFILES="C:&#92;Program Files&#92;Common Files" \nCOMPUTERNAME="SHOEY" \nCOMSPEC="C:&#92;WINDOWS&#92;system32&#92;cmd.exe" \nCONTENT_LENGTH="0" \nFP_NO_HOST_CHECK="NO" \nGATEWAY_INTERFACE="CGI/1.1" \nHTTPS="off" \nHTTP_ACCEPT="*/*" \nHTTP_ACCEPT_ENCODING="gzip, deflate" \nHTTP_ACCEPT_LANGUAGE="en-gb" \nHTTP_CONNECTION="Keep-Alive" \nHTTP_HOST="shoey.no-ip.info" \nHTTP_USER_AGENT="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)" \nINSTANCE_ID="1" \nLOCAL_ADDR="192.168.1.3" \nNUMBER_OF_PROCESSORS="1" \nOS="Windows_NT" \nPATH="C:&#92;Perl&#92;bin&#92;;C:&#92;WINDOWS&#92;system32;C:&#92;WINDOWS;C:&#92;WINDOWS&#92;System32&#92;Wbem;C:&#92;Program Files&#92;ATI Technologies&#92;ATI.ACE&#92;;C:&#92;Program Files&#92;Microsoft SQL Server&#92;80&#92;Tools&#92;Binn&#92;" \nPATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH" \nPATH_INFO="/fscrape/cgi-bin/test.pl" \nPATH_TRANSLATED="c:&#92;inetpub&#92;wwwroot&#92;fscrape&#92;cgi-bin&#92;test.pl" \nPROCESSOR_ARCHITECTURE="x86" \nPROCESSOR_IDENTIFIER="x86 Family 15 Model 39 Stepping 1, AuthenticAMD" \nPROCESSOR_LEVEL="15" \nPROCESSOR_REVISION="2701" \nPROGRAMFILES="C:&#92;Program Files" \nREMOTE_ADDR="192.168.1.1" \nREMOTE_HOST="192.168.1.1" \nREQUEST_METHOD="GET" \nSCRIPT_NAME="/fscrape/cgi-bin/test.pl" \nSERVER_NAME="shoey.no-ip.info" \nSERVER_PORT="80" \nSERVER_PORT_SECURE="0" \nSERVER_PROTOCOL="HTTP/1.1" \nSERVER_SOFTWARE="Microsoft-IIS/5.1" \nSYSTEMDRIVE="C:" \nSYSTEMROOT="C:&#92;WINDOWS" \nTEMP="C:&#92;WINDOWS&#92;TEMP" \nTMP="C:&#92;WINDOWS&#92;TEMP" \nUSERPROFILE="C:&#92;Documents and Settings&#92;LocalService" \nVS80COMNTOOLS="C:&#92;Program Files&#92;Microsoft Visual Studio 8&#92;Common7&#92;Tools&#92;" \nWINDIR="C:&#92;WINDOWS" \n\n\nalso what server are you using?
565668
next to the 0(zero key)is the hyphen-   push the hyphen key and shift at the same time.\n\nso instead of -, you will get _.\n\nYAY!
622069
Above answer is ok except for not using the -- operator:\nNeed to start at 10 and to decrement i use the statement:\n\ni--;\n\nThis changes the problem somewhat.  Another problem in the first answer is that fact is not initialized, so it will always equal zero resulting in a division by zero error.
357099
void\nmain()\n{\n   if (printf("morgan&#92;n")) {\n   }\n}\n\n\nNo semi's -- no problem.
508812
On a mac, it means your code is not gramticcally correct. On a PC I don't know but it's proably the same.
993679
You can write Java code within Perl by using the Inline::Java module (look at http://search.cpan.org/~patl/Inline-Java-0.51/Java.pod). Likewise, you can call Perl from Java by using the Inline::Java::PerlInterpreter module (look at http://search.cpan.org/dist/Inline-Java/Java/PerlInterpreter/PerlInterpreter.pod).\nI am not sure that these modules are considered stable, so I would think twice about using them in production code without thourough *cough* testing...
809827
That means that the GEEK was too lazy to write a meaningful error message.   If you are developing a website with perl, php and MySql, you should look at the on-line references.   Here are some that might help\n\nhttp://dev.mysql.com/doc/refman/5.0/en/index.html\n\nhttp://www-ad.fsl.noaa.gov/~moninger/mysql_perl_tutorial/start.html\n\nUse Google and search for other on-line guides, tutorials and tips.\n\nGood luck and Happy Computing!
461539
printf("%-15u&#92;n",40000);\n\nprovided I understood it correctly.
129733
:/ means  SIMPLY UNAFFECTED
370890
There is no command in standard Unix spelled "@";\nhowever:\n\n  - There is a standard command, spelled "at",\n    for executing batch jobs at a specified time.\n    (see manual page at reference 1)\n\n  - Anyone *could* create a command called "@"\n    simply by renaming or linking a command\n    to that name.
1071898
it's x, assuming that x is zero or postive. \n\nif x is negative, it is either undefined, \nor if you use complex numbers, it is |x|=-x.
711352
get -e http://www.example.com/page \n\n('get' is part of the perl lwp library) can show the headers \n\nyou can include the If-Modified-Since header and just check the result code!\n\nit's a great little util (simple command line), but you need perl!
722130
... have the WHAT ??????????????????\nwhat the f@$# is that ???\nget outa here ... please!
212340
Actually, this is Perl code.  Perl has support for regular expressions built into the language.  There are tools out there (such as "The Regulator") which can take regular expression strings and break them down into english statements that make it easier to understand them.\n\nHowever, from this code, it looks like it is storing a several regular expression strings into a collection.  From first glance, it appear that the strings look for certain text, most specifically for questions that probably appear on Yahoo! Answers.  For example, it looks like "quick and easy 10 point" or "an easy ten points" may be a match.\n\nThis is probably a script used to search for a pattern of questions and provide stock answers in an attempt to automate "point gaming".  I would strongly recommend against using it, especially after posting details about it here.