Re: confused by use of 'implied' variable

2013-04-05 Thread will trillich
Greg -- The "shortcuts" us the perl variable $_. That is, when no specific argument is supplied, $_ is used by default. s/x/y/; while ( <> ) {...} print; All the above and more expect a value to work with, and if none is given, perl uses $_ by default. You get into trouble when you have a

confused by use of 'implied' variable

2013-04-05 Thread Greg VisionInfosoft
im butchering a public script i found on the internet for purpose of doing a CGI file upload. theres one excerpt from the script that ive never used before. the few lines... while ( <$upload_filehandle> ) { print UPLOADFILE; } if it were me, i would not write code this way, i write in a way