[Bug 889715] perl - chomp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=889715

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |CLOSED
         Resolution|---                         |NOTABUG
        Last Closed|                            |2013-01-28 03:09:24

--- Comment #4 from Petr Pisar <ppisar@xxxxxxxxxx> ---
(In reply to comment #3)
> 
> And the syntax error:
> 
> syntax error at ~/Desktop/User Scripts/user.pl line 3, near "chomp"
> Execution of /home/Joshua/Desktop/User Scripts/user.pl aborted due to
> compilation errors.
> 
> My code is the same:
> 
> !#/usr/lib/perl 
> #can also be /usr/bin/perl
Correct one is:
#!/usr/bin/perl

> print "What is your name?"
This is line 3. You are missing semicolon at the end of print command. 

> chomp($my_varible=<STDIN>);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=kTmGyBiIUH&a=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux