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 / ankur

open FP,">","myfile.txt"
print FP "Hello World!!";
close FP;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to open and read data files with Perl

1051


Which of these is a difference between Perl and C++ ?

1054


What does this symbol mean '->'?

1014


How to read multi lines from a file in perl?

923


What do you mean by context of a subroutine?

982


I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur

2046


What does read () command do?

938


What does the’$_’ symbol mean?

1010


What does 'do' statement do in perl?

1002


Differentiate between arrays and list in perl.

993


Differentiate between use and require, my and local, for and foreach and exec and system

909


What does -> symbol indicates in Perl?

977


What does init 5 and init 0 do?

1019


Demonstrate subroutines in perl with a simple example.

860


What are prefix dereferencer? List them.

976