RE: confused by use of 'implied' variable

2013-04-08 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg VisionInfosoft Sent: 05 April 2013 21:16 To: Perl-Win32-Users@listserv.ActiveState.com Subject: confused by use of 'implied' variable im butchering a public

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

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