Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you open a file for writing?

Answer Posted / raj

Files are opened using the open and sysopen function.
Either function may be passed up to 4 arguments, the first
is always the file handle thenfile name also known as a URL
or filepath, flags, and finally any permissions to be
granted to this file.

$FH = "filehandle";
$FilePath = "myhtml.html";

open(FH, $FilePath, permissions);
or
sysopen(FH, $FileName, permission);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the meaning of subroutine?

1016


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1191


Explain the use of 'my' keyword in perl?

1070


How can you create anonymous subroutines?

963


Which guidelines by Perl modules must be followed?

1070


How can arrays be tied?

961


What is the use of '>>' in perl?

1075


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

2197


What are the arguements we normally use for perl interpreter?

1020


What are the options that can be used to avoid logic errors in perl?

1002


What is the use of -n and -p options?

1116


How can you replace the characters from a string and save the number of replacements?

960


What are the arguments and what do they mean in perl programming?

1048


What are the different instances used in cgi overhead?

1036


Explain the functioning of conditional structures in perl.

1000