Difference between revisions of "PERL/C2/Variables-in-Perl/Gujarati"

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 5: Line 5:
 
|-
 
|-
 
| 00:01
 
| 00:01
|  '''Variables in '''Perl'''''' પરના સ્પોકન ટ્યુટોરીયલમાં તમારું સ્વાગત છે..  
+
|  '''Variables in '''Perl'''''' પરના સ્પોકન ટ્યુટોરીયલમાં તમારું સ્વાગત છે.
  
 
|-
 
|-
Line 45: Line 45:
 
|-
 
|-
 
| 00:56
 
| 00:56
| '''Scalar variables''' are declared using $ ('''dollar''') symbol.
+
| સ્કેલર વેરીએબલને $ ('''dollar''') ચિન્હ વાપરીને ડીકલેર કરાવાય છે.
  
 
|-
 
|-
 
|  01:00
 
|  01:00
Let us look at '''Variable Declaration''':
+
ચાલો વેરીએબલ ડીકલેર કરીને જોઈએ.
  
 
|-
 
|-
 
| 01:03
 
| 01:03
| A '''variable''' can be declared as follows: '''dollar priority semicolon'''
+
| વેરીએબલ આપલે રીતે ડીકલેર કરી શકાય છે: '''dollar priority semicolon'''
  
 
|-
 
|-
 
| 01:09
 
| 01:09
| '''Variable''' names in '''Perl''' can have several formats. '''Variables''' must begin with a letter or '''underscore'''
+
| પર્લમા વેરીએબલના નામ ના અનેક ફોરમેટ છે. વેરીએબલની શરુઆત અક્ષર અથવા અન્ડરસ્કૉર થી શરુ થાય છે.
  
 
|-
 
|-
 
|  01:18
 
|  01:18
| And may contains letters, digits, '''underscores''' or a combination of above 3.
+
| અને તેમાં અક્ષરો,આંકડા, અન્ડરસ્કૉરો અથવા તો આ ત્રણેના મિશ્રણ હોય શકે છે.  
  
 
|-
 
|-
 
|  01:24
 
|  01:24
'''Variables''' declared with CAPITAL letters have special meaning in '''Perl.'''
+
કેપિટલ અક્ષરમાં ડીકલેર કરેલા વેરીએબલોનો  પર્લમા વિશિષ્ટ અર્થ હોય છે.
  
 
|-
 
|-
 
| 01:30
 
| 01:30
| So avoid declaring '''variables''' using Capital letters.
+
| તો કેપિટલ અક્ષરોને વેરીએબલ ડીકલેર કરતી વખતે ટાળો.
  
 
|-
 
|-
 
|  01:34
 
|  01:34
Now open the '''Terminal''' and type  '''gedit variables dot pl ampersand '''
+
હવે ટર્મિનલ ખોલો અને ટાઈપ કરો '''gedit variables dot pl ampersand '''
  
 
|-
 
|-
 
| 01:44
 
| 01:44
| The '''ampersand''' will unlock the command prompt on the '''terminal'''. Now press '''Enter'''.
+
| The '''ampersand''' થી આપણે ટર્મિનલ પર કમાંડ પ્રોમ્પ્ટ ને અનલોક કરીએ છીએ .હવે  '''Enter''' દબાઓ.  
  
 
|-
 
|-
 
| 01:50    
 
| 01:50    
This will open the '''variables.pl '''file in '''gedit''' text editor.
+
''gedit''' ટેક્સ્ટ એડિટરમા '''variables.પલ ખોલશે.
  
 
|-
 
|-
 
| 01:56
 
| 01:56
| '''dot pl '''is the default extension of a '''Perl''' file.
+
| '''dot pl ''' એ પર્લમા મૂળભૂત એક્સ્ટેંશન છે.
  
 
|-
 
|-
 
|  02:01
 
|  02:01
Type the following in the file; '''dollar priority semicolon''' and press '''Enter'''.
+
ફાઈલ માં આપલે ટાઈપ કરો; '''dollar priority semicolon''' અને '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  02:10
 
|  02:10
So we have declared the '''variable priority'''.
+
તો આપણે  ''' priority''' વેરીએબલ ડીકલેર કરી.
  
 
|-
 
|-
 
| 02:13
 
| 02:13
| You do not need to declare a '''variable''' before using it;
+
| ઉપયોગ કર્યા પહેલા વેરીએબલ ડીકલેર કરવાની જરૂર નથી.
  
 
|-
 
|-
 
| 02:18  
 
| 02:18  
| you can just use it into your code.  
+
| તમે તેને પોતાના કોડ માં વાપરી શકો છો.
  
 
|-
 
|-
 
|  02:21  
 
|  02:21  
| Now let us assign a numerical value to the '''variable priority'''.  
+
| હવે ''' priority''' વેરીએબલ ને ન્યુંમેરીક્લ વેરીએબલ સોપીશું.  
  
 
|-
 
|-
 
| 02:25
 
| 02:25
| For this type '''dollar priority space equal to space one semicolon'''
+
| આ કરવા અંતે ટાઈપ કરો '''dollar priority space equal to space one semicolon'''
  
 
|-
 
|-
 
| 02:32
 
| 02:32
| and press '''Enter'''.
+
| અને '''Enter''' દબાઓ.
  
 
|-
 
|-
 
| 02:34  
 
| 02:34  
Next, type
+
આગળ ટાઈપ કરો.
  
 
|-
 
|-
 
| 02:36
 
| 02:36
| '''print space double quote Value of variable is: dollar priority slash n''' close double quote '''semicolon''' and press enter
+
| '''print space double quote Value of variable is: dollar priority slash n''' close double quote '''semicolon''' અને એન્ટર દબાઓ.
  
 
|-
 
|-
 
| 02:50
 
| 02:50
| '''slash n''' is the new line character.
+
| '''slash n''' એ ન્યુ લાઈન કેરેક્ટર છે.
  
 
|-
 
|-
 
|  02:53
 
|  02:53
Now save this file as '''variables.pl''' at any location.
+
હવે કોઈ પણ જગ્યાએ  '''variables.pl''' ફાઈલ સેવ કરો.
  
 
|-
 
|-
 
| 03:02
 
| 03:02
| In my case, it will get saved in '''home/amol '''directory. Now save this file
+
| મારા કિસ્સા મા, હું '''home/amol ''' ડિરેક્ટરીમા સેવ કરીશ.હવે હું ફાઈલ સેવ કરીશ.
  
 
|-
 
|-
 
| 03:10
 
| 03:10
| Now, let us change the permissions of '''variables.pl''' file, which we just now created.
+
| હમણાં જે આપણે '''variables.pl''' ફાઈલ બનાવી છે તેની પરમીશન બદલીએ.
  
 
|-
 
|-
 
| 03:18
 
| 03:18
| To do so, on the '''Terminal''' type, '''chmod 755 variables dot pl'''
+
| આ કરવા માટે ટાઈપ કરો '''chmod 755 variables dot pl'''
  
 
|-
 
|-
 
| 03:27
 
| 03:27
| This will provide read, write & execute rights to the file.
+
| આ ફાઈલને રીડ,રાઈટ,અને એક્ઝીક્યુટ કરવાની પરવાનગી આપે છે.
  
 
|-
 
|-
 
|  03:32
 
|  03:32
To compile this '''Perl''' script, on the '''Terminal'''
+
પર્લ સ્ક્રીપ્ટને કમ્પાઈલ કરવા માટે ટર્મિનલ પર
  
 
|-
 
|-
 
| 03:36
 
| 03:36
| type ;'''perl hyphen c variables dot pl'''
+
| ટાઈપ કરો ;'''perl hyphen c variables dot pl'''
  
 
|-
 
|-
 
|  03:42
 
|  03:42
|  '''Hyphen c '''switch compiles the '''Perl''' script for any compilation/syntax error.
+
|  '''Hyphen c ''' સ્વીચ માટે પર્લ ક્મ્પ્લાઇલ થાય છે. સિન્ટેક્સ એરર માટે તપાસે છે.
  
 
|-
 
|-
 
|  03:49
 
|  03:49
| Now press '''Enter'''
+
| હવે  '''Enter''' દબાઓ .
  
 
|-
 
|-
 
| 03:51
 
| 03:51
| This tells us that there is no syntax error in our script.
+
|આ આપણને કહે છે કે  આપની સ્ક્રીપ્ટમા કોઈ પણ એરર નથી.
  
 
|-
 
|-
 
|  03:56
 
|  03:56
| Now let's execute the '''Perl''' script by typing '''perl variables dot pl''' and press '''Enter'''.
+
| હવે પર્લ સ્ક્રીપ્ટ એક્ઝીક્યુટ કરવા માટે ટાઈપ કરો '''perl variables dot pl''' અને  '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  04:06
 
|  04:06
The output displayed is as highlighted.
+
હાઈલાઈટ કર્યા પ્રમાણે આઉટપુટ દેખાશે.
  
 
|-
 
|-
 
|  04:10
 
|  04:10
We can also assign a '''string''' value to the '''variable''' we declared.
+
| આપણે ડીકલેર કરેલા વેરીએબલને આપણે સ્ટ્રીંગ વેલ્યુ પણ આપી શકીએ છીએ.
  
 
|-
 
|-
 
| 04:15
 
| 04:15
| Switch back to the Text editor window.
+
| ટેક્સ્ટ એડિટર વિન્ડો પર પાછા જઈએ.
  
 
|-
 
|-
 
|  04:18
 
|  04:18
| Instead of '''dollar priority equal to one;'''  type
+
|   '''dollar priority equal to one;'''  તેની જગ્યા એ ટાઈપ કરો
  
 
|-
 
|-
Line 193: Line 193:
 
|-
 
|-
 
|  04:28
 
|  04:28
| Please note that  the assignments are evaluated from right to left.
+
| નોંધ લો, કે અસાઇનમેન્ટને જમણી બાજુથી ડાબીએ મૂલ્યાંકન કરવામાં આવે છે.
  
 
|-
 
|-
 
| 04:34
 
| 04:34
| A '''scalar''' can hold data of any type, be it a '''string''', a number
+
| સ્કેલર કોઈ પણ પ્રકારના ડેટાને સંચિત કરી શકે છે.સ્ટ્રીંગ અથવા નંબર.
  
 
|-
 
|-
 
|  04:38
 
|  04:38
Save this file and compile the script once again by typing
+
આ ફાઈલ સેવ કરો અને ફરીથી સ્ક્રીપ્ટ કમ્પાઈલ કરવા માટે ટાઈપ કરો.
  
 
|-
 
|-
 
| 04:45
 
| 04:45
| '''perl hyphen c variables dot pl''' now press '''Enter'''.
+
| '''perl hyphen c variables dot pl''' હવે  '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  04:51  
 
|  04:51  
| This tells us that there is no syntax error.
+
| આ આપણ ને કોઈ એરર નથી એમ કહે છે.
  
 
|-
 
|-
 
| 04:55
 
| 04:55
| Execute the script by typing '''perl variables dot pl''' and press '''Enter'''.
+
| સ્ક્રીપ્ટ એક્ઝીક્યુટ કરવા માટે ટાઈપ કરો '''perl variables dot pl''' અને  '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  05:03
 
|  05:03
The output is as shown.
+
આઉટપુટ આપેલ રીતે દેખાય છે.
  
 
|-
 
|-
 
|  05:07
 
|  05:07
Now switch back to the Text Editor window.
+
હવે ટેક્સ્ટ એડિટર વિન્ડો પર પાછા જઈએ.
  
 
|-
 
|-
 
| 05:10
 
| 05:10
| You can also use '''scalars''' within a double-quoted '''strings''' as
+
| તમે સ્કેલરને  બે અવતરણ ચિન્હ સ્ટ્રીંગમા પણ વાપરી શકો છો.
  
 
|-
 
|-
 
| 05:15
 
| 05:15
| '''dollar priority in double quote String'''
+
| ''''''dollar priority'''  બે અવતરણ ચિન્હમા  '''String''''''
  
 
|-
 
|-
 
| 05:19
 
| 05:19
| Save this file and close it.
+
| ફાઈલ સેવ કરો અને બંદ કરો.
  
 
|-
 
|-
 
|  05:22  
 
|  05:22  
| let us learn how to declare multiple '''variables'''.
+
| ચાલો મલ્ટીપલ વેરીએબલ કેવી રીતે જાહેર કરવું તે શીખીએ.
  
 
|-
 
|-
 
| 05:27  
 
| 05:27  
| To do so open the new file in Text Editor.
+
| આ કરવા માટે ટેક્સ્ટ એડિટરમા નવી ફાઈલ ખોલો.
  
 
|-
 
|-
 
|  05:31
 
|  05:31
on'''Terminal''' type - '''gedit multivar dot pl space ampersand''' and press '''Enter'''.
+
ટર્મિનલ પર ટાઈપ કરો - '''gedit multivar dot pl space ampersand''' અને '''Enter''' દબાઓ.
  
 
|-
 
|-
 
| 05:42
 
| 05:42
| This will open '''multivar dot pl''' file in text editor
+
|આ ટેક્સ્ટ એડીટરમાં  '''multivar dot pl''' ફાઈલને ખોલશે.
  
 
|-
 
|-
 
|  05:48
 
|  05:48
Now  type -
+
હવે ટાઈપ કરો -
  
 
|-
 
|-
 
| 05:50
 
| 05:50
| '''dollar firstVar comma dollar secondVar semicolon''' and press '''Enter'''.
+
| '''dollar firstVar comma dollar secondVar semicolon''' અને '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  06:00
 
|  06:00
| To copy the value of variable '''dollar firstVar''' to '''dollar secondVar''', type -
+
|   '''dollar firstVar''' વેરીએબલની વેલ્યુ '''dollar secondVar''' મા કોપી કરવામાટે ટાઈપ કરો -
  
 
|-
 
|-
 
| 06:07
 
| 06:07
| '''dollar firstVar space equal to space dollar secondVar semicolon''' and press '''Enter'''.
+
| '''dollar firstVar space equal to space dollar secondVar semicolon''' અને  '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  06:19
 
|  06:19
| All mathematical operations like addition, subtraction, multiplication, division, can be done on these variables
+
| આ વેરીએબલ પર સરવાળો,બાદબાકી, ગુણાકાર, ભાગાકાર કરી શકાય છે.
  
 
|-
 
|-
 
| 06:30
 
| 06:30
| Let us see how we can achieve this using '''Perl'''.
+
|ચાલો જોઈએ આ આપણે કેવી રીતે પર્લ વાપરીને પ્રાપ્ત કરીશું.
  
 
|-
 
|-
 
| 06:34  
 
| 06:34  
Switch to text editor.
+
ટેક્સ્ટ એડિટર પર જાઓ.
  
 
|-
 
|-
 
| 06:36
 
| 06:36
| And now let us assign the value '''10''' to both of these variables by typing,
+
| અને હવે  આ બંને વેરીએબલને '''10''' વેલ્યુ સોપોવા માટે ટાઈપ કરો.
  
 
|-
 
|-
 
| 06:41
 
| 06:41
| '''dollar firstVar equal to dollar secondVar equal to ten semicolon''' And Press '''Enter'''.
+
| '''dollar firstVar equal to dollar secondVar equal to ten semicolon''' અને '''Enter'''દબાઓ.
  
 
|-
 
|-
 
|  06:51
 
|  06:51
Now to print these values, type
+
હવે વેલ્યુ પ્રિન્ટ કરવા માટે ટાઈપ કરો.
  
 
|-
 
|-
 
| 06:55
 
| 06:55
| '''print double quote firstVar: dollar firstVar and secondVar: dollar secondVar slash n''' close double quote  '''semicolon''' press '''Enter'''.
+
| '''print double quote firstVar: dollar firstVar and secondVar: dollar secondVar slash n''' close double quote  '''semicolon''' '''Enter''' દબાઓ.
  
 
|-
 
|-
 
| 07:17
 
| 07:17
| Now save this file.
+
| હવે ફાઈલ સેવ કરો.
 
+
 
|-
 
|-
 
|  07:19
 
|  07:19
| Now let us add the values in the two variables.
+
| ચાલો હવે બે વેરીએબલમા વેલ્યુ ઉમેરીએ.  
  
 
|-
 
|-
 
| 07:23
 
| 07:23
| For this type
+
| આ કરવા માટે ટાઈપ કરો.
  
 
|-
 
|-
 
| 07:25
 
| 07:25
| '''dollar addition space equal to space dollar firstVar plus space dollar secondVar semicolon'''and Press '''Enter'''.
+
| '''dollar addition space equal to space dollar firstVar plus space dollar secondVar semicolon'''અને  '''Enter''' દબાઓ.
  
 
|-
 
|-
 
|  07:43
 
|  07:43
| Notice, we haven't declared the variable '''addition'''.
+
| નોંધ લો કે આપણે '''addition''' વેરીએબલ ડીકલેર કર્યું નથી.
  
 
|-
 
|-
 
|  07:47  
 
|  07:47  
Once again, to print the value of the  variable '''addition''', type
+
ફરીથી '''addition''' વેરીએબલની વેલ્યુ પ્રિન્ટ કરવા માટે,ટાઈપ કરો.
  
 
|-
 
|-
Line 325: Line 324:
 
|-
 
|-
 
| 08:05
 
| 08:05
| Save this file
+
| આ ફાઈલ સેવ કરો.
  
 
|-
 
|-
 
|  08:07
 
|  08:07
| To compile this file again on terminal type
+
| ફરીથી ફાઈલ કમ્પાઈલ કરવા માટે ટર્મિનલ પર ટાઈપ કરો.
  
 
|-
 
|-
Line 337: Line 336:
 
|-
 
|-
 
| 08:18
 
| 08:18
| There is no syntax error so we can execute the script...
+
| અહી કોઈ પણ સિન્ટેક્ષ એરર નથી તો આપણે સ્ક્રીપ્ટ એક્ઝીક્યુટ કરી શકીએ છીએ.
  
 
|-
 
|-
 
|  08:24
 
|  08:24
|   by typing '''perl multivar dot pl'''
+
| તે માટે ટાઈપ કરો '''perl multivar dot pl'''
  
 
|-
 
|-
 
|  08:30
 
|  08:30
| This will produce an output as highlighted.
+
| આ હાઈલાઈટ તરીકે આઉટપુટ રજુ કરે છે.
 
    
 
    
 
|-
 
|-
 
|  08:34
 
|  08:34
| Similarly, try subtraction, multiplication and division.
+
| તેજ રીતે બાદબાકી,ગુણાકાર,અને ભાગાકાર નો પ્રયાસ કરો.
  
 
|-
 
|-
 
| 08:38
 
| 08:38
| I have written the code here.
+
| મેં અહી કોડ લખ્યો છે.
  
 
|-
 
|-
 
|  08:41
 
|  08:41
| Now let us save this file and close it.
+
| ચાલો હવે ફાઈલને સેવ કરો અને બંદ કરો.
  
 
|-
 
|-
 
|  08:46
 
|  08:46
Now compile the file by typing
+
હવે ફાઈલ કમ્પાઈલ કરવા માટે ટાઈપ કરો
  
 
|-
 
|-
Line 369: Line 368:
 
|-
 
|-
 
| 08:54
 
| 08:54
| There is no syntax error.
+
| કોઈ પણ સિન્ટેક્ષ એરર નથી.
  
 
|-
 
|-
 
| 08:55
 
| 08:55
| So we can execute the script as '''perl multivar dot pl'''
+
| આપણે '''perl multivar dot pl''' તરીકે સ્ક્રીપ્ટ એક્ઝીક્યુટ કરી શકીએ છીએ.
  
 
|-
 
|-
 
| 09:01
 
| 09:01
| On execution the output will look like this.
+
| એક્ઝીક્યુટ કરવા પર આઉટપુટ આવું દેખાશે.
  
 
|-
 
|-
 
|  09:06
 
|  09:06
| This brings us to the end of this tutorial.
+
| આ આપણને ટ્યુટોરીયલના અંતમા લઇ જશે.
  
 
|-
 
|-
 
| 09:11
 
| 09:11
| In this tutorial we have learnt,  
+
|આ ટ્યુટોરીયલ માં આપણે શીખ્યા,
  
 
|-
 
|-
 
| 09:14
 
| 09:14
| To Declare and Use '''scalar variables''' in '''Perl'''
+
|પર્લમા '''scalar variables''' ડીકલેર અને વાપરતા.
  
 
|-
 
|-
 
|  09:18
 
|  09:18
| '''Assignment'''
+
| અસાઈનમેન્ટ
  
 
|-
 
|-
 
| 09:20
 
| 09:20
| Declare a number '''variable'''.  
+
|   નંબર વેરીએબલ ડીકલેર કરો.
 +
 
 
|-
 
|-
 
| 09:22
 
| 09:22
| Assign  10 to it.  
+
| તેને  '''10'''  વેલ્યુ સોપો.
 +
 
 
|-
 
|-
 
| 09:24
 
| 09:24
Print the '''variable''' declared.
+
ડીકલેર કરેલ વેરીએબલને પ્રિન્ટ કરો.
 +
 
 
|-
 
|-
 
| 09:26
 
| 09:26
| Declare 2 '''string variables'''.
+
| બે સ્ટ્રીંગ વેરીએબલ ડીકલેર કરો.
 +
 
 
|-
 
|-
 
| 09:29
 
| 09:29
Assign these values to them - “Namaste ” and “India”.  
+
|  “Namaste ” અને  “India” આ વેલ્યુ તેમને સોપો.  
 +
 
 
|-
 
|-
 
| 09:34
 
| 09:34
| Print those '''2  variables''' one after the other.
+
| એક પછી એક વેરીએબલ પ્રિન્ટ કરો.
  
 
|-
 
|-
 
| 09:38   
 
| 09:38   
Watch the video available at the following link
+
સ્ક્રીન પર દર્શાવેલ લીંક પર ઉપલબ્ધ વિડીયો નિહાળો.
  
 
|-
 
|-
 
| 09:42  
 
| 09:42  
| It summarises the Spoken Tutorial project
+
| તે સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટનો સારાંશ આપે છે.
  
 
|-
 
|-
 
| 09:45
 
| 09:45
| If you do not have good bandwidth, you can  download and watch it
+
|જો તમારી પાસે સારી બેન્ડવિડ્થ ન હોય તો, તમે વિડીયો ડાઉનલોડ કરીને જોઈ શકો છો.
  
 
|-
 
|-
 
|  09:50
 
|  09:50
The Spoken Tutorial Project Team
+
સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટ ટીમ
  
 
|-
 
|-
 
| 09:53
 
| 09:53
| Conducts workshops using spoken tutorials
+
| સ્પોકન ટ્યુટોરીયલોનાં ઉપયોગથી વર્કશોપોનું આયોજન કરે છે.
  
 
|-
 
|-
 
| 09:56
 
| 09:56
| Gives certificates to those who pass an online  test
+
| જેઓ ઓનલાઈન પરીક્ષા પાસ કરે છે તેઓને પ્રમાણપત્રો આપે છે.
  
 
|-
 
|-
 
| 10:01
 
| 10:01
| For more details, please write to  contact at spoken tutorial dot org  
+
| વધુ વિગતો માટે contact@spoken-tutorial.org પર લખો .
  
 
|-
 
|-
 
|  10:08
 
|  10:08
Spoken Tutorial Project is a part of the Talk to a  Teacher project
+
સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટ ટોક ટુ અ ટીચર પ્રોજેક્ટનો એક ભાગ છે .
  
 
|-
 
|-
 
| 10:13   
 
| 10:13   
| It is supported by the National Mission on  Education through ICT, MHRD, Government of India
+
|જેને આઈસીટી, એમએચઆરડી, ભારત સરકાર મારફતે શિક્ષણ પર નેશનલ મિશન દ્વારા આધાર અપાયેલ છે .
  
 
|-
 
|-
 
|  10:23
 
|  10:23
More information on this Mission is available  at the following link.
+
આ મિશન પર વધુ જાણકારી આપેલ લીંક પર ઉપબ્ધ છે.  
  
 
|-
 
|-
 
|  10:29
 
|  10:29
Hope you enjoyed this '''Perl''' tutorial. This is Amol Brahmankar signing off.
+
આશા છે તમે 'પર્લ' ટ્યુટોરીયલનો આનંદ લીધો, આઈઆઈટી બોમ્બે તરફથી હું, જ્યોતી સોલંકી વિદાય લઉં છું.  
 
+
 
|-
 
|-
 
|  10:34
 
|  10:34
Thanks for joining.
+
જોડાવા બદલ આભાર.
  
 
|}
 
|}

Revision as of 16:33, 16 September 2014

Time Narration
00:01 'Variables in Perl' પરના સ્પોકન ટ્યુટોરીયલમાં તમારું સ્વાગત છે.
00:06 આ ટ્યુટોરીયલમાં આપણે વેરીએબલ માં પર્લવિષે શીખીશું.
00:12 હું વાપરી રહ્યી છું લીનક્સ ઓપરેટીંગ સીસ્ટમ ઉબુન્ટુ, આવૃત્તિ 12.04 અને
00:18 Perl 5.14.2 જે છે, Perl રીવ્ર્જ્ન 5 આવૃત્તિ 14 અને સ્બ્વર્જ્ન 2
00:26 હું gedit Text Editor પણ વાપરીશ.
00:30 તમે તમારી ઈચ્છા અનુસાર કોઈ પણ ટેક્સ્ટ એડિટર વાપરી શકો છો.
00:34 પર્લમાં વેરીએબલસ :
00:37 વેરીએબનો ઉપયોગ ટેક્સ્ટ સ્ટ્રીંગસ,નંબર અથવા અરેની વેલ્યુ સંગ્રહિત કરવા માટે થાય છે.
00:44 એકવાર વેરીએબલને ડીકલેર કર્યા પછી થી સ્ક્રીપ્ટમાં તેનો ઉપયોગ વારમ વાર કરી શકાય છે.
00:50 સ્કેલર એકજ વેલ્યુ રજૂ કરે છે અને તેને scalars મા સંગ્રહિત કરવાય છે.
00:56 સ્કેલર વેરીએબલને $ (dollar) ચિન્હ વાપરીને ડીકલેર કરાવાય છે.
01:00 ચાલો વેરીએબલ ડીકલેર કરીને જોઈએ.
01:03 વેરીએબલ આપલે રીતે ડીકલેર કરી શકાય છે: dollar priority semicolon
01:09 પર્લમા વેરીએબલના નામ ના અનેક ફોરમેટ છે. વેરીએબલની શરુઆત અક્ષર અથવા અન્ડરસ્કૉર થી શરુ થાય છે.
01:18 અને તેમાં અક્ષરો,આંકડા, અન્ડરસ્કૉરો અથવા તો આ ત્રણેના મિશ્રણ હોય શકે છે.
01:24 કેપિટલ અક્ષરમાં ડીકલેર કરેલા વેરીએબલોનો પર્લમા વિશિષ્ટ અર્થ હોય છે.
01:30 તો કેપિટલ અક્ષરોને વેરીએબલ ડીકલેર કરતી વખતે ટાળો.
01:34 હવે ટર્મિનલ ખોલો અને ટાઈપ કરો gedit variables dot pl ampersand
01:44 The ampersand થી આપણે ટર્મિનલ પર કમાંડ પ્રોમ્પ્ટ ને અનલોક કરીએ છીએ .હવે Enter દબાઓ.
01:50 gedit ટેક્સ્ટ એડિટરમા variables.પલ ખોલશે.
01:56 dot pl એ પર્લમા મૂળભૂત એક્સ્ટેંશન છે.
02:01 ફાઈલ માં આપલે ટાઈપ કરો; dollar priority semicolon અને Enter દબાઓ.
02:10 તો આપણે priority વેરીએબલ ડીકલેર કરી.
02:13 ઉપયોગ કર્યા પહેલા વેરીએબલ ડીકલેર કરવાની જરૂર નથી.
02:18 તમે તેને પોતાના કોડ માં વાપરી શકો છો.
02:21 હવે priority વેરીએબલ ને ન્યુંમેરીક્લ વેરીએબલ સોપીશું.
02:25 આ કરવા અંતે ટાઈપ કરો dollar priority space equal to space one semicolon
02:32 અને Enter દબાઓ.
02:34 આગળ ટાઈપ કરો.
02:36 print space double quote Value of variable is: dollar priority slash n close double quote semicolon અને એન્ટર દબાઓ.
02:50 slash n એ ન્યુ લાઈન કેરેક્ટર છે.
02:53 હવે કોઈ પણ જગ્યાએ variables.pl ફાઈલ સેવ કરો.
03:02 મારા કિસ્સા મા, હું home/amol ડિરેક્ટરીમા સેવ કરીશ.હવે હું ફાઈલ સેવ કરીશ.
03:10 હમણાં જે આપણે variables.pl ફાઈલ બનાવી છે તેની પરમીશન બદલીએ.
03:18 આ કરવા માટે ટાઈપ કરો chmod 755 variables dot pl
03:27 આ ફાઈલને રીડ,રાઈટ,અને એક્ઝીક્યુટ કરવાની પરવાનગી આપે છે.
03:32 પર્લ સ્ક્રીપ્ટને કમ્પાઈલ કરવા માટે ટર્મિનલ પર
03:36 ટાઈપ કરો ;perl hyphen c variables dot pl
03:42 Hyphen c સ્વીચ માટે પર્લ ક્મ્પ્લાઇલ થાય છે. સિન્ટેક્સ એરર માટે તપાસે છે.
03:49 હવે Enter દબાઓ .
03:51 આ આપણને કહે છે કે આપની સ્ક્રીપ્ટમા કોઈ પણ એરર નથી.
03:56 હવે પર્લ સ્ક્રીપ્ટ એક્ઝીક્યુટ કરવા માટે ટાઈપ કરો perl variables dot pl અને Enter દબાઓ.
04:06 હાઈલાઈટ કર્યા પ્રમાણે આઉટપુટ દેખાશે.
04:10 આપણે ડીકલેર કરેલા વેરીએબલને આપણે સ્ટ્રીંગ વેલ્યુ પણ આપી શકીએ છીએ.
04:15 ટેક્સ્ટ એડિટર વિન્ડો પર પાછા જઈએ.
04:18 dollar priority equal to one; તેની જગ્યા એ ટાઈપ કરો
04:22 dollar priority equal to in single quote high
04:28 નોંધ લો, કે અસાઇનમેન્ટને જમણી બાજુથી ડાબીએ મૂલ્યાંકન કરવામાં આવે છે.
04:34 સ્કેલર કોઈ પણ પ્રકારના ડેટાને સંચિત કરી શકે છે.સ્ટ્રીંગ અથવા નંબર.
04:38 આ ફાઈલ સેવ કરો અને ફરીથી સ્ક્રીપ્ટ કમ્પાઈલ કરવા માટે ટાઈપ કરો.
04:45 perl hyphen c variables dot pl હવે Enter દબાઓ.
04:51 આ આપણ ને કોઈ એરર નથી એમ કહે છે.
04:55 સ્ક્રીપ્ટ એક્ઝીક્યુટ કરવા માટે ટાઈપ કરો perl variables dot pl અને Enter દબાઓ.
05:03 આઉટપુટ આપેલ રીતે દેખાય છે.
05:07 હવે ટેક્સ્ટ એડિટર વિન્ડો પર પાછા જઈએ.
05:10 તમે સ્કેલરને બે અવતરણ ચિન્હ સ્ટ્રીંગમા પણ વાપરી શકો છો.
05:15 'dollar priority બે અવતરણ ચિન્હમા String'
05:19 ફાઈલ સેવ કરો અને બંદ કરો.
05:22 ચાલો મલ્ટીપલ વેરીએબલ કેવી રીતે જાહેર કરવું તે શીખીએ.
05:27 આ કરવા માટે ટેક્સ્ટ એડિટરમા નવી ફાઈલ ખોલો.
05:31 ટર્મિનલ પર ટાઈપ કરો - gedit multivar dot pl space ampersand અને Enter દબાઓ.
05:42 આ ટેક્સ્ટ એડીટરમાં multivar dot pl ફાઈલને ખોલશે.
05:48 હવે ટાઈપ કરો -
05:50 dollar firstVar comma dollar secondVar semicolon અને Enter દબાઓ.
06:00 dollar firstVar વેરીએબલની વેલ્યુ dollar secondVar મા કોપી કરવામાટે ટાઈપ કરો -
06:07 dollar firstVar space equal to space dollar secondVar semicolon અને Enter દબાઓ.
06:19 આ વેરીએબલ પર સરવાળો,બાદબાકી, ગુણાકાર, ભાગાકાર કરી શકાય છે.
06:30 ચાલો જોઈએ આ આપણે કેવી રીતે પર્લ વાપરીને પ્રાપ્ત કરીશું.
06:34 ટેક્સ્ટ એડિટર પર જાઓ.
06:36 અને હવે આ બંને વેરીએબલને 10 વેલ્યુ સોપોવા માટે ટાઈપ કરો.
06:41 dollar firstVar equal to dollar secondVar equal to ten semicolon અને Enterદબાઓ.
06:51 હવે વેલ્યુ પ્રિન્ટ કરવા માટે ટાઈપ કરો.
06:55 print double quote firstVar: dollar firstVar and secondVar: dollar secondVar slash n close double quote semicolon Enter દબાઓ.
07:17 હવે ફાઈલ સેવ કરો.
07:19 ચાલો હવે બે વેરીએબલમા વેલ્યુ ઉમેરીએ.
07:23 આ કરવા માટે ટાઈપ કરો.
07:25 dollar addition space equal to space dollar firstVar plus space dollar secondVar semicolonઅને Enter દબાઓ.
07:43 નોંધ લો કે આપણે addition વેરીએબલ ડીકલેર કર્યું નથી.
07:47 ફરીથી addition વેરીએબલની વેલ્યુ પ્રિન્ટ કરવા માટે,ટાઈપ કરો.
07:53 print double quote Addition is dollar addition slash n close double quote semicolon
08:05 આ ફાઈલ સેવ કરો.
08:07 ફરીથી ફાઈલ કમ્પાઈલ કરવા માટે ટર્મિનલ પર ટાઈપ કરો.
08:12 perl hyphen c multivar dot pl
08:18 અહી કોઈ પણ સિન્ટેક્ષ એરર નથી તો આપણે સ્ક્રીપ્ટ એક્ઝીક્યુટ કરી શકીએ છીએ.
08:24 તે માટે ટાઈપ કરો perl multivar dot pl
08:30 આ હાઈલાઈટ તરીકે આઉટપુટ રજુ કરે છે.
08:34 તેજ રીતે બાદબાકી,ગુણાકાર,અને ભાગાકાર નો પ્રયાસ કરો.
08:38 મેં અહી કોડ લખ્યો છે.
08:41 ચાલો હવે ફાઈલને સેવ કરો અને બંદ કરો.
08:46 હવે ફાઈલ કમ્પાઈલ કરવા માટે ટાઈપ કરો
08:48 perl hyphen c multivar dot pl
08:54 કોઈ પણ સિન્ટેક્ષ એરર નથી.
08:55 આપણે perl multivar dot pl તરીકે સ્ક્રીપ્ટ એક્ઝીક્યુટ કરી શકીએ છીએ.
09:01 એક્ઝીક્યુટ કરવા પર આઉટપુટ આવું દેખાશે.
09:06 આ આપણને ટ્યુટોરીયલના અંતમા લઇ જશે.
09:11 આ ટ્યુટોરીયલ માં આપણે શીખ્યા,
09:14 પર્લમા scalar variables ડીકલેર અને વાપરતા.
09:18 અસાઈનમેન્ટ
09:20 નંબર વેરીએબલ ડીકલેર કરો.
09:22 તેને 10 વેલ્યુ સોપો.
09:24 ડીકલેર કરેલ વેરીએબલને પ્રિન્ટ કરો.
09:26 બે સ્ટ્રીંગ વેરીએબલ ડીકલેર કરો.
09:29 “Namaste ” અને “India” આ વેલ્યુ તેમને સોપો.
09:34 એક પછી એક વેરીએબલ પ્રિન્ટ કરો.
09:38 સ્ક્રીન પર દર્શાવેલ લીંક પર ઉપલબ્ધ વિડીયો નિહાળો.
09:42 તે સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટનો સારાંશ આપે છે.
09:45 જો તમારી પાસે સારી બેન્ડવિડ્થ ન હોય તો, તમે વિડીયો ડાઉનલોડ કરીને જોઈ શકો છો.
09:50 સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટ ટીમ
09:53 સ્પોકન ટ્યુટોરીયલોનાં ઉપયોગથી વર્કશોપોનું આયોજન કરે છે.
09:56 જેઓ ઓનલાઈન પરીક્ષા પાસ કરે છે તેઓને પ્રમાણપત્રો આપે છે.
10:01 વધુ વિગતો માટે contact@spoken-tutorial.org પર લખો .
10:08 સ્પોકન ટ્યુટોરીયલ પ્રોજેક્ટ ટોક ટુ અ ટીચર પ્રોજેક્ટનો એક ભાગ છે .
10:13 જેને આઈસીટી, એમએચઆરડી, ભારત સરકાર મારફતે શિક્ષણ પર નેશનલ મિશન દ્વારા આધાર અપાયેલ છે .
10:23 આ મિશન પર વધુ જાણકારી આપેલ લીંક પર ઉપબ્ધ છે.
10:29 આશા છે તમે 'પર્લ' ટ્યુટોરીયલનો આનંદ લીધો, આઈઆઈટી બોમ્બે તરફથી હું, જ્યોતી સોલંકી વિદાય લઉં છું.
10:34 જોડાવા બદલ આભાર.

Contributors and Content Editors

Jyotisolanki